@aldiokta/protocgen 1.0.11 → 1.0.13

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.
@@ -0,0 +1,4256 @@
1
+ // source: prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
25
+ goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
26
+ var prisca_v1_core_transaction_builder_transaction_builder_pb = require('../../../../prisca/v1/core/transaction_builder/transaction_builder_pb.js');
27
+ goog.object.extend(proto, prisca_v1_core_transaction_builder_transaction_builder_pb);
28
+ goog.exportSymbol('proto.BasePurchaseRequisitionTrx', null, global);
29
+ goog.exportSymbol('proto.CreatePurchaseRequisitionTrxRequest', null, global);
30
+ goog.exportSymbol('proto.CreatePurchaseRequisitionTrxResponse', null, global);
31
+ goog.exportSymbol('proto.GetPurchaseRequisitionTrxByIdRequest', null, global);
32
+ goog.exportSymbol('proto.GetPurchaseRequisitionTrxByIdResponse', null, global);
33
+ goog.exportSymbol('proto.GetPurchaseRequisitionTrxDetailByIdRequest', null, global);
34
+ goog.exportSymbol('proto.GetPurchaseRequisitionTrxDetailByIdResponse', null, global);
35
+ goog.exportSymbol('proto.GetPurchaseRequisitionTrxDetailListDetailRequest', null, global);
36
+ goog.exportSymbol('proto.GetPurchaseRequisitionTrxDetailListRequest', null, global);
37
+ goog.exportSymbol('proto.GetPurchaseRequisitionTrxDetailListResponse', null, global);
38
+ goog.exportSymbol('proto.GetPurchaseRequisitionTrxDetailListTableResponse', null, global);
39
+ goog.exportSymbol('proto.GetPurchaseRequisitionTrxListRequest', null, global);
40
+ goog.exportSymbol('proto.GetPurchaseRequisitionTrxListResponse', null, global);
41
+ goog.exportSymbol('proto.PurchaseRequisitionTrx', null, global);
42
+ goog.exportSymbol('proto.UpdatePurchaseRequisitionTrxRequest', null, global);
43
+ goog.exportSymbol('proto.UpdatePurchaseRequisitionTrxResponse', null, global);
44
+ goog.exportSymbol('proto.Value', null, global);
45
+ /**
46
+ * Generated by JsPbCodeGenerator.
47
+ * @param {Array=} opt_data Optional initial data array, typically from a
48
+ * server response, or constructed directly in Javascript. The array is used
49
+ * in place and becomes part of the constructed object. It is not cloned.
50
+ * If no data is provided, the constructed object will be empty, but still
51
+ * valid.
52
+ * @extends {jspb.Message}
53
+ * @constructor
54
+ */
55
+ proto.Value = function(opt_data) {
56
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
57
+ };
58
+ goog.inherits(proto.Value, jspb.Message);
59
+ if (goog.DEBUG && !COMPILED) {
60
+ /**
61
+ * @public
62
+ * @override
63
+ */
64
+ proto.Value.displayName = 'proto.Value';
65
+ }
66
+ /**
67
+ * Generated by JsPbCodeGenerator.
68
+ * @param {Array=} opt_data Optional initial data array, typically from a
69
+ * server response, or constructed directly in Javascript. The array is used
70
+ * in place and becomes part of the constructed object. It is not cloned.
71
+ * If no data is provided, the constructed object will be empty, but still
72
+ * valid.
73
+ * @extends {jspb.Message}
74
+ * @constructor
75
+ */
76
+ proto.PurchaseRequisitionTrx = function(opt_data) {
77
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.PurchaseRequisitionTrx.repeatedFields_, null);
78
+ };
79
+ goog.inherits(proto.PurchaseRequisitionTrx, jspb.Message);
80
+ if (goog.DEBUG && !COMPILED) {
81
+ /**
82
+ * @public
83
+ * @override
84
+ */
85
+ proto.PurchaseRequisitionTrx.displayName = 'proto.PurchaseRequisitionTrx';
86
+ }
87
+ /**
88
+ * Generated by JsPbCodeGenerator.
89
+ * @param {Array=} opt_data Optional initial data array, typically from a
90
+ * server response, or constructed directly in Javascript. The array is used
91
+ * in place and becomes part of the constructed object. It is not cloned.
92
+ * If no data is provided, the constructed object will be empty, but still
93
+ * valid.
94
+ * @extends {jspb.Message}
95
+ * @constructor
96
+ */
97
+ proto.BasePurchaseRequisitionTrx = function(opt_data) {
98
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.BasePurchaseRequisitionTrx.repeatedFields_, null);
99
+ };
100
+ goog.inherits(proto.BasePurchaseRequisitionTrx, jspb.Message);
101
+ if (goog.DEBUG && !COMPILED) {
102
+ /**
103
+ * @public
104
+ * @override
105
+ */
106
+ proto.BasePurchaseRequisitionTrx.displayName = 'proto.BasePurchaseRequisitionTrx';
107
+ }
108
+ /**
109
+ * Generated by JsPbCodeGenerator.
110
+ * @param {Array=} opt_data Optional initial data array, typically from a
111
+ * server response, or constructed directly in Javascript. The array is used
112
+ * in place and becomes part of the constructed object. It is not cloned.
113
+ * If no data is provided, the constructed object will be empty, but still
114
+ * valid.
115
+ * @extends {jspb.Message}
116
+ * @constructor
117
+ */
118
+ proto.CreatePurchaseRequisitionTrxRequest = function(opt_data) {
119
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
120
+ };
121
+ goog.inherits(proto.CreatePurchaseRequisitionTrxRequest, jspb.Message);
122
+ if (goog.DEBUG && !COMPILED) {
123
+ /**
124
+ * @public
125
+ * @override
126
+ */
127
+ proto.CreatePurchaseRequisitionTrxRequest.displayName = 'proto.CreatePurchaseRequisitionTrxRequest';
128
+ }
129
+ /**
130
+ * Generated by JsPbCodeGenerator.
131
+ * @param {Array=} opt_data Optional initial data array, typically from a
132
+ * server response, or constructed directly in Javascript. The array is used
133
+ * in place and becomes part of the constructed object. It is not cloned.
134
+ * If no data is provided, the constructed object will be empty, but still
135
+ * valid.
136
+ * @extends {jspb.Message}
137
+ * @constructor
138
+ */
139
+ proto.UpdatePurchaseRequisitionTrxRequest = function(opt_data) {
140
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
141
+ };
142
+ goog.inherits(proto.UpdatePurchaseRequisitionTrxRequest, jspb.Message);
143
+ if (goog.DEBUG && !COMPILED) {
144
+ /**
145
+ * @public
146
+ * @override
147
+ */
148
+ proto.UpdatePurchaseRequisitionTrxRequest.displayName = 'proto.UpdatePurchaseRequisitionTrxRequest';
149
+ }
150
+ /**
151
+ * Generated by JsPbCodeGenerator.
152
+ * @param {Array=} opt_data Optional initial data array, typically from a
153
+ * server response, or constructed directly in Javascript. The array is used
154
+ * in place and becomes part of the constructed object. It is not cloned.
155
+ * If no data is provided, the constructed object will be empty, but still
156
+ * valid.
157
+ * @extends {jspb.Message}
158
+ * @constructor
159
+ */
160
+ proto.GetPurchaseRequisitionTrxByIdRequest = function(opt_data) {
161
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
162
+ };
163
+ goog.inherits(proto.GetPurchaseRequisitionTrxByIdRequest, jspb.Message);
164
+ if (goog.DEBUG && !COMPILED) {
165
+ /**
166
+ * @public
167
+ * @override
168
+ */
169
+ proto.GetPurchaseRequisitionTrxByIdRequest.displayName = 'proto.GetPurchaseRequisitionTrxByIdRequest';
170
+ }
171
+ /**
172
+ * Generated by JsPbCodeGenerator.
173
+ * @param {Array=} opt_data Optional initial data array, typically from a
174
+ * server response, or constructed directly in Javascript. The array is used
175
+ * in place and becomes part of the constructed object. It is not cloned.
176
+ * If no data is provided, the constructed object will be empty, but still
177
+ * valid.
178
+ * @extends {jspb.Message}
179
+ * @constructor
180
+ */
181
+ proto.GetPurchaseRequisitionTrxListRequest = function(opt_data) {
182
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
183
+ };
184
+ goog.inherits(proto.GetPurchaseRequisitionTrxListRequest, jspb.Message);
185
+ if (goog.DEBUG && !COMPILED) {
186
+ /**
187
+ * @public
188
+ * @override
189
+ */
190
+ proto.GetPurchaseRequisitionTrxListRequest.displayName = 'proto.GetPurchaseRequisitionTrxListRequest';
191
+ }
192
+ /**
193
+ * Generated by JsPbCodeGenerator.
194
+ * @param {Array=} opt_data Optional initial data array, typically from a
195
+ * server response, or constructed directly in Javascript. The array is used
196
+ * in place and becomes part of the constructed object. It is not cloned.
197
+ * If no data is provided, the constructed object will be empty, but still
198
+ * valid.
199
+ * @extends {jspb.Message}
200
+ * @constructor
201
+ */
202
+ proto.GetPurchaseRequisitionTrxDetailByIdRequest = function(opt_data) {
203
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
204
+ };
205
+ goog.inherits(proto.GetPurchaseRequisitionTrxDetailByIdRequest, jspb.Message);
206
+ if (goog.DEBUG && !COMPILED) {
207
+ /**
208
+ * @public
209
+ * @override
210
+ */
211
+ proto.GetPurchaseRequisitionTrxDetailByIdRequest.displayName = 'proto.GetPurchaseRequisitionTrxDetailByIdRequest';
212
+ }
213
+ /**
214
+ * Generated by JsPbCodeGenerator.
215
+ * @param {Array=} opt_data Optional initial data array, typically from a
216
+ * server response, or constructed directly in Javascript. The array is used
217
+ * in place and becomes part of the constructed object. It is not cloned.
218
+ * If no data is provided, the constructed object will be empty, but still
219
+ * valid.
220
+ * @extends {jspb.Message}
221
+ * @constructor
222
+ */
223
+ proto.GetPurchaseRequisitionTrxDetailListRequest = function(opt_data) {
224
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
225
+ };
226
+ goog.inherits(proto.GetPurchaseRequisitionTrxDetailListRequest, jspb.Message);
227
+ if (goog.DEBUG && !COMPILED) {
228
+ /**
229
+ * @public
230
+ * @override
231
+ */
232
+ proto.GetPurchaseRequisitionTrxDetailListRequest.displayName = 'proto.GetPurchaseRequisitionTrxDetailListRequest';
233
+ }
234
+ /**
235
+ * Generated by JsPbCodeGenerator.
236
+ * @param {Array=} opt_data Optional initial data array, typically from a
237
+ * server response, or constructed directly in Javascript. The array is used
238
+ * in place and becomes part of the constructed object. It is not cloned.
239
+ * If no data is provided, the constructed object will be empty, but still
240
+ * valid.
241
+ * @extends {jspb.Message}
242
+ * @constructor
243
+ */
244
+ proto.GetPurchaseRequisitionTrxDetailListDetailRequest = function(opt_data) {
245
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
246
+ };
247
+ goog.inherits(proto.GetPurchaseRequisitionTrxDetailListDetailRequest, jspb.Message);
248
+ if (goog.DEBUG && !COMPILED) {
249
+ /**
250
+ * @public
251
+ * @override
252
+ */
253
+ proto.GetPurchaseRequisitionTrxDetailListDetailRequest.displayName = 'proto.GetPurchaseRequisitionTrxDetailListDetailRequest';
254
+ }
255
+ /**
256
+ * Generated by JsPbCodeGenerator.
257
+ * @param {Array=} opt_data Optional initial data array, typically from a
258
+ * server response, or constructed directly in Javascript. The array is used
259
+ * in place and becomes part of the constructed object. It is not cloned.
260
+ * If no data is provided, the constructed object will be empty, but still
261
+ * valid.
262
+ * @extends {jspb.Message}
263
+ * @constructor
264
+ */
265
+ proto.CreatePurchaseRequisitionTrxResponse = function(opt_data) {
266
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
267
+ };
268
+ goog.inherits(proto.CreatePurchaseRequisitionTrxResponse, jspb.Message);
269
+ if (goog.DEBUG && !COMPILED) {
270
+ /**
271
+ * @public
272
+ * @override
273
+ */
274
+ proto.CreatePurchaseRequisitionTrxResponse.displayName = 'proto.CreatePurchaseRequisitionTrxResponse';
275
+ }
276
+ /**
277
+ * Generated by JsPbCodeGenerator.
278
+ * @param {Array=} opt_data Optional initial data array, typically from a
279
+ * server response, or constructed directly in Javascript. The array is used
280
+ * in place and becomes part of the constructed object. It is not cloned.
281
+ * If no data is provided, the constructed object will be empty, but still
282
+ * valid.
283
+ * @extends {jspb.Message}
284
+ * @constructor
285
+ */
286
+ proto.UpdatePurchaseRequisitionTrxResponse = function(opt_data) {
287
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
288
+ };
289
+ goog.inherits(proto.UpdatePurchaseRequisitionTrxResponse, jspb.Message);
290
+ if (goog.DEBUG && !COMPILED) {
291
+ /**
292
+ * @public
293
+ * @override
294
+ */
295
+ proto.UpdatePurchaseRequisitionTrxResponse.displayName = 'proto.UpdatePurchaseRequisitionTrxResponse';
296
+ }
297
+ /**
298
+ * Generated by JsPbCodeGenerator.
299
+ * @param {Array=} opt_data Optional initial data array, typically from a
300
+ * server response, or constructed directly in Javascript. The array is used
301
+ * in place and becomes part of the constructed object. It is not cloned.
302
+ * If no data is provided, the constructed object will be empty, but still
303
+ * valid.
304
+ * @extends {jspb.Message}
305
+ * @constructor
306
+ */
307
+ proto.GetPurchaseRequisitionTrxByIdResponse = function(opt_data) {
308
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
309
+ };
310
+ goog.inherits(proto.GetPurchaseRequisitionTrxByIdResponse, jspb.Message);
311
+ if (goog.DEBUG && !COMPILED) {
312
+ /**
313
+ * @public
314
+ * @override
315
+ */
316
+ proto.GetPurchaseRequisitionTrxByIdResponse.displayName = 'proto.GetPurchaseRequisitionTrxByIdResponse';
317
+ }
318
+ /**
319
+ * Generated by JsPbCodeGenerator.
320
+ * @param {Array=} opt_data Optional initial data array, typically from a
321
+ * server response, or constructed directly in Javascript. The array is used
322
+ * in place and becomes part of the constructed object. It is not cloned.
323
+ * If no data is provided, the constructed object will be empty, but still
324
+ * valid.
325
+ * @extends {jspb.Message}
326
+ * @constructor
327
+ */
328
+ proto.GetPurchaseRequisitionTrxListResponse = function(opt_data) {
329
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetPurchaseRequisitionTrxListResponse.repeatedFields_, null);
330
+ };
331
+ goog.inherits(proto.GetPurchaseRequisitionTrxListResponse, jspb.Message);
332
+ if (goog.DEBUG && !COMPILED) {
333
+ /**
334
+ * @public
335
+ * @override
336
+ */
337
+ proto.GetPurchaseRequisitionTrxListResponse.displayName = 'proto.GetPurchaseRequisitionTrxListResponse';
338
+ }
339
+ /**
340
+ * Generated by JsPbCodeGenerator.
341
+ * @param {Array=} opt_data Optional initial data array, typically from a
342
+ * server response, or constructed directly in Javascript. The array is used
343
+ * in place and becomes part of the constructed object. It is not cloned.
344
+ * If no data is provided, the constructed object will be empty, but still
345
+ * valid.
346
+ * @extends {jspb.Message}
347
+ * @constructor
348
+ */
349
+ proto.GetPurchaseRequisitionTrxDetailByIdResponse = function(opt_data) {
350
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetPurchaseRequisitionTrxDetailByIdResponse.repeatedFields_, null);
351
+ };
352
+ goog.inherits(proto.GetPurchaseRequisitionTrxDetailByIdResponse, jspb.Message);
353
+ if (goog.DEBUG && !COMPILED) {
354
+ /**
355
+ * @public
356
+ * @override
357
+ */
358
+ proto.GetPurchaseRequisitionTrxDetailByIdResponse.displayName = 'proto.GetPurchaseRequisitionTrxDetailByIdResponse';
359
+ }
360
+ /**
361
+ * Generated by JsPbCodeGenerator.
362
+ * @param {Array=} opt_data Optional initial data array, typically from a
363
+ * server response, or constructed directly in Javascript. The array is used
364
+ * in place and becomes part of the constructed object. It is not cloned.
365
+ * If no data is provided, the constructed object will be empty, but still
366
+ * valid.
367
+ * @extends {jspb.Message}
368
+ * @constructor
369
+ */
370
+ proto.GetPurchaseRequisitionTrxDetailListResponse = function(opt_data) {
371
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetPurchaseRequisitionTrxDetailListResponse.repeatedFields_, null);
372
+ };
373
+ goog.inherits(proto.GetPurchaseRequisitionTrxDetailListResponse, jspb.Message);
374
+ if (goog.DEBUG && !COMPILED) {
375
+ /**
376
+ * @public
377
+ * @override
378
+ */
379
+ proto.GetPurchaseRequisitionTrxDetailListResponse.displayName = 'proto.GetPurchaseRequisitionTrxDetailListResponse';
380
+ }
381
+ /**
382
+ * Generated by JsPbCodeGenerator.
383
+ * @param {Array=} opt_data Optional initial data array, typically from a
384
+ * server response, or constructed directly in Javascript. The array is used
385
+ * in place and becomes part of the constructed object. It is not cloned.
386
+ * If no data is provided, the constructed object will be empty, but still
387
+ * valid.
388
+ * @extends {jspb.Message}
389
+ * @constructor
390
+ */
391
+ proto.GetPurchaseRequisitionTrxDetailListTableResponse = function(opt_data) {
392
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetPurchaseRequisitionTrxDetailListTableResponse.repeatedFields_, null);
393
+ };
394
+ goog.inherits(proto.GetPurchaseRequisitionTrxDetailListTableResponse, jspb.Message);
395
+ if (goog.DEBUG && !COMPILED) {
396
+ /**
397
+ * @public
398
+ * @override
399
+ */
400
+ proto.GetPurchaseRequisitionTrxDetailListTableResponse.displayName = 'proto.GetPurchaseRequisitionTrxDetailListTableResponse';
401
+ }
402
+
403
+
404
+
405
+ if (jspb.Message.GENERATE_TO_OBJECT) {
406
+ /**
407
+ * Creates an object representation of this proto.
408
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
409
+ * Optional fields that are not set will be set to undefined.
410
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
411
+ * For the list of reserved names please see:
412
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
413
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
414
+ * JSPB instance for transitional soy proto support:
415
+ * http://goto/soy-param-migration
416
+ * @return {!Object}
417
+ */
418
+ proto.Value.prototype.toObject = function(opt_includeInstance) {
419
+ return proto.Value.toObject(opt_includeInstance, this);
420
+ };
421
+
422
+
423
+ /**
424
+ * Static version of the {@see toObject} method.
425
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
426
+ * the JSPB instance for transitional soy proto support:
427
+ * http://goto/soy-param-migration
428
+ * @param {!proto.Value} msg The msg instance to transform.
429
+ * @return {!Object}
430
+ * @suppress {unusedLocalVariables} f is only used for nested messages
431
+ */
432
+ proto.Value.toObject = function(includeInstance, msg) {
433
+ var f, obj = {
434
+ key: jspb.Message.getFieldWithDefault(msg, 1, ""),
435
+ value: jspb.Message.getFieldWithDefault(msg, 2, "")
436
+ };
437
+
438
+ if (includeInstance) {
439
+ obj.$jspbMessageInstance = msg;
440
+ }
441
+ return obj;
442
+ };
443
+ }
444
+
445
+
446
+ /**
447
+ * Deserializes binary data (in protobuf wire format).
448
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
449
+ * @return {!proto.Value}
450
+ */
451
+ proto.Value.deserializeBinary = function(bytes) {
452
+ var reader = new jspb.BinaryReader(bytes);
453
+ var msg = new proto.Value;
454
+ return proto.Value.deserializeBinaryFromReader(msg, reader);
455
+ };
456
+
457
+
458
+ /**
459
+ * Deserializes binary data (in protobuf wire format) from the
460
+ * given reader into the given message object.
461
+ * @param {!proto.Value} msg The message object to deserialize into.
462
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
463
+ * @return {!proto.Value}
464
+ */
465
+ proto.Value.deserializeBinaryFromReader = function(msg, reader) {
466
+ while (reader.nextField()) {
467
+ if (reader.isEndGroup()) {
468
+ break;
469
+ }
470
+ var field = reader.getFieldNumber();
471
+ switch (field) {
472
+ case 1:
473
+ var value = /** @type {string} */ (reader.readString());
474
+ msg.setKey(value);
475
+ break;
476
+ case 2:
477
+ var value = /** @type {string} */ (reader.readString());
478
+ msg.setValue(value);
479
+ break;
480
+ default:
481
+ reader.skipField();
482
+ break;
483
+ }
484
+ }
485
+ return msg;
486
+ };
487
+
488
+
489
+ /**
490
+ * Serializes the message to binary data (in protobuf wire format).
491
+ * @return {!Uint8Array}
492
+ */
493
+ proto.Value.prototype.serializeBinary = function() {
494
+ var writer = new jspb.BinaryWriter();
495
+ proto.Value.serializeBinaryToWriter(this, writer);
496
+ return writer.getResultBuffer();
497
+ };
498
+
499
+
500
+ /**
501
+ * Serializes the given message to binary data (in protobuf wire
502
+ * format), writing to the given BinaryWriter.
503
+ * @param {!proto.Value} message
504
+ * @param {!jspb.BinaryWriter} writer
505
+ * @suppress {unusedLocalVariables} f is only used for nested messages
506
+ */
507
+ proto.Value.serializeBinaryToWriter = function(message, writer) {
508
+ var f = undefined;
509
+ f = message.getKey();
510
+ if (f.length > 0) {
511
+ writer.writeString(
512
+ 1,
513
+ f
514
+ );
515
+ }
516
+ f = message.getValue();
517
+ if (f.length > 0) {
518
+ writer.writeString(
519
+ 2,
520
+ f
521
+ );
522
+ }
523
+ };
524
+
525
+
526
+ /**
527
+ * optional string key = 1;
528
+ * @return {string}
529
+ */
530
+ proto.Value.prototype.getKey = function() {
531
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
532
+ };
533
+
534
+
535
+ /**
536
+ * @param {string} value
537
+ * @return {!proto.Value} returns this
538
+ */
539
+ proto.Value.prototype.setKey = function(value) {
540
+ return jspb.Message.setProto3StringField(this, 1, value);
541
+ };
542
+
543
+
544
+ /**
545
+ * optional string value = 2;
546
+ * @return {string}
547
+ */
548
+ proto.Value.prototype.getValue = function() {
549
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
550
+ };
551
+
552
+
553
+ /**
554
+ * @param {string} value
555
+ * @return {!proto.Value} returns this
556
+ */
557
+ proto.Value.prototype.setValue = function(value) {
558
+ return jspb.Message.setProto3StringField(this, 2, value);
559
+ };
560
+
561
+
562
+
563
+ /**
564
+ * List of repeated fields within this message type.
565
+ * @private {!Array<number>}
566
+ * @const
567
+ */
568
+ proto.PurchaseRequisitionTrx.repeatedFields_ = [13];
569
+
570
+
571
+
572
+ if (jspb.Message.GENERATE_TO_OBJECT) {
573
+ /**
574
+ * Creates an object representation of this proto.
575
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
576
+ * Optional fields that are not set will be set to undefined.
577
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
578
+ * For the list of reserved names please see:
579
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
580
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
581
+ * JSPB instance for transitional soy proto support:
582
+ * http://goto/soy-param-migration
583
+ * @return {!Object}
584
+ */
585
+ proto.PurchaseRequisitionTrx.prototype.toObject = function(opt_includeInstance) {
586
+ return proto.PurchaseRequisitionTrx.toObject(opt_includeInstance, this);
587
+ };
588
+
589
+
590
+ /**
591
+ * Static version of the {@see toObject} method.
592
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
593
+ * the JSPB instance for transitional soy proto support:
594
+ * http://goto/soy-param-migration
595
+ * @param {!proto.PurchaseRequisitionTrx} msg The msg instance to transform.
596
+ * @return {!Object}
597
+ * @suppress {unusedLocalVariables} f is only used for nested messages
598
+ */
599
+ proto.PurchaseRequisitionTrx.toObject = function(includeInstance, msg) {
600
+ var f, obj = {
601
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
602
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
603
+ purchaseRequisitionTransactionNumber: jspb.Message.getFieldWithDefault(msg, 3, ""),
604
+ itemCategoryRef: jspb.Message.getFieldWithDefault(msg, 4, ""),
605
+ accountAssigmentRef: jspb.Message.getFieldWithDefault(msg, 5, ""),
606
+ currencyRef: jspb.Message.getFieldWithDefault(msg, 6, ""),
607
+ purchaseRequisitionType: jspb.Message.getFieldWithDefault(msg, 7, ""),
608
+ department: jspb.Message.getFieldWithDefault(msg, 8, ""),
609
+ purchasingOrganization: jspb.Message.getFieldWithDefault(msg, 9, ""),
610
+ emailCc: jspb.Message.getFieldWithDefault(msg, 10, ""),
611
+ plantRef: jspb.Message.getFieldWithDefault(msg, 11, ""),
612
+ purchasingGroup: jspb.Message.getFieldWithDefault(msg, 12, ""),
613
+ customTransactionList: jspb.Message.toObjectList(msg.getCustomTransactionList(),
614
+ prisca_v1_core_transaction_builder_transaction_builder_pb.Value.toObject, includeInstance),
615
+ referencesId: jspb.Message.getFieldWithDefault(msg, 14, ""),
616
+ createdAt: jspb.Message.getFieldWithDefault(msg, 15, ""),
617
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 16, "")
618
+ };
619
+
620
+ if (includeInstance) {
621
+ obj.$jspbMessageInstance = msg;
622
+ }
623
+ return obj;
624
+ };
625
+ }
626
+
627
+
628
+ /**
629
+ * Deserializes binary data (in protobuf wire format).
630
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
631
+ * @return {!proto.PurchaseRequisitionTrx}
632
+ */
633
+ proto.PurchaseRequisitionTrx.deserializeBinary = function(bytes) {
634
+ var reader = new jspb.BinaryReader(bytes);
635
+ var msg = new proto.PurchaseRequisitionTrx;
636
+ return proto.PurchaseRequisitionTrx.deserializeBinaryFromReader(msg, reader);
637
+ };
638
+
639
+
640
+ /**
641
+ * Deserializes binary data (in protobuf wire format) from the
642
+ * given reader into the given message object.
643
+ * @param {!proto.PurchaseRequisitionTrx} msg The message object to deserialize into.
644
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
645
+ * @return {!proto.PurchaseRequisitionTrx}
646
+ */
647
+ proto.PurchaseRequisitionTrx.deserializeBinaryFromReader = function(msg, reader) {
648
+ while (reader.nextField()) {
649
+ if (reader.isEndGroup()) {
650
+ break;
651
+ }
652
+ var field = reader.getFieldNumber();
653
+ switch (field) {
654
+ case 1:
655
+ var value = /** @type {number} */ (reader.readInt64());
656
+ msg.setId(value);
657
+ break;
658
+ case 2:
659
+ var value = /** @type {string} */ (reader.readString());
660
+ msg.setTitle(value);
661
+ break;
662
+ case 3:
663
+ var value = /** @type {string} */ (reader.readString());
664
+ msg.setPurchaseRequisitionTransactionNumber(value);
665
+ break;
666
+ case 4:
667
+ var value = /** @type {string} */ (reader.readString());
668
+ msg.setItemCategoryRef(value);
669
+ break;
670
+ case 5:
671
+ var value = /** @type {string} */ (reader.readString());
672
+ msg.setAccountAssigmentRef(value);
673
+ break;
674
+ case 6:
675
+ var value = /** @type {string} */ (reader.readString());
676
+ msg.setCurrencyRef(value);
677
+ break;
678
+ case 7:
679
+ var value = /** @type {string} */ (reader.readString());
680
+ msg.setPurchaseRequisitionType(value);
681
+ break;
682
+ case 8:
683
+ var value = /** @type {string} */ (reader.readString());
684
+ msg.setDepartment(value);
685
+ break;
686
+ case 9:
687
+ var value = /** @type {string} */ (reader.readString());
688
+ msg.setPurchasingOrganization(value);
689
+ break;
690
+ case 10:
691
+ var value = /** @type {string} */ (reader.readString());
692
+ msg.setEmailCc(value);
693
+ break;
694
+ case 11:
695
+ var value = /** @type {string} */ (reader.readString());
696
+ msg.setPlantRef(value);
697
+ break;
698
+ case 12:
699
+ var value = /** @type {string} */ (reader.readString());
700
+ msg.setPurchasingGroup(value);
701
+ break;
702
+ case 13:
703
+ var value = new prisca_v1_core_transaction_builder_transaction_builder_pb.Value;
704
+ reader.readMessage(value,prisca_v1_core_transaction_builder_transaction_builder_pb.Value.deserializeBinaryFromReader);
705
+ msg.addCustomTransaction(value);
706
+ break;
707
+ case 14:
708
+ var value = /** @type {string} */ (reader.readString());
709
+ msg.setReferencesId(value);
710
+ break;
711
+ case 15:
712
+ var value = /** @type {string} */ (reader.readString());
713
+ msg.setCreatedAt(value);
714
+ break;
715
+ case 16:
716
+ var value = /** @type {string} */ (reader.readString());
717
+ msg.setUpdatedAt(value);
718
+ break;
719
+ default:
720
+ reader.skipField();
721
+ break;
722
+ }
723
+ }
724
+ return msg;
725
+ };
726
+
727
+
728
+ /**
729
+ * Serializes the message to binary data (in protobuf wire format).
730
+ * @return {!Uint8Array}
731
+ */
732
+ proto.PurchaseRequisitionTrx.prototype.serializeBinary = function() {
733
+ var writer = new jspb.BinaryWriter();
734
+ proto.PurchaseRequisitionTrx.serializeBinaryToWriter(this, writer);
735
+ return writer.getResultBuffer();
736
+ };
737
+
738
+
739
+ /**
740
+ * Serializes the given message to binary data (in protobuf wire
741
+ * format), writing to the given BinaryWriter.
742
+ * @param {!proto.PurchaseRequisitionTrx} message
743
+ * @param {!jspb.BinaryWriter} writer
744
+ * @suppress {unusedLocalVariables} f is only used for nested messages
745
+ */
746
+ proto.PurchaseRequisitionTrx.serializeBinaryToWriter = function(message, writer) {
747
+ var f = undefined;
748
+ f = message.getId();
749
+ if (f !== 0) {
750
+ writer.writeInt64(
751
+ 1,
752
+ f
753
+ );
754
+ }
755
+ f = message.getTitle();
756
+ if (f.length > 0) {
757
+ writer.writeString(
758
+ 2,
759
+ f
760
+ );
761
+ }
762
+ f = message.getPurchaseRequisitionTransactionNumber();
763
+ if (f.length > 0) {
764
+ writer.writeString(
765
+ 3,
766
+ f
767
+ );
768
+ }
769
+ f = message.getItemCategoryRef();
770
+ if (f.length > 0) {
771
+ writer.writeString(
772
+ 4,
773
+ f
774
+ );
775
+ }
776
+ f = message.getAccountAssigmentRef();
777
+ if (f.length > 0) {
778
+ writer.writeString(
779
+ 5,
780
+ f
781
+ );
782
+ }
783
+ f = message.getCurrencyRef();
784
+ if (f.length > 0) {
785
+ writer.writeString(
786
+ 6,
787
+ f
788
+ );
789
+ }
790
+ f = message.getPurchaseRequisitionType();
791
+ if (f.length > 0) {
792
+ writer.writeString(
793
+ 7,
794
+ f
795
+ );
796
+ }
797
+ f = message.getDepartment();
798
+ if (f.length > 0) {
799
+ writer.writeString(
800
+ 8,
801
+ f
802
+ );
803
+ }
804
+ f = message.getPurchasingOrganization();
805
+ if (f.length > 0) {
806
+ writer.writeString(
807
+ 9,
808
+ f
809
+ );
810
+ }
811
+ f = message.getEmailCc();
812
+ if (f.length > 0) {
813
+ writer.writeString(
814
+ 10,
815
+ f
816
+ );
817
+ }
818
+ f = message.getPlantRef();
819
+ if (f.length > 0) {
820
+ writer.writeString(
821
+ 11,
822
+ f
823
+ );
824
+ }
825
+ f = message.getPurchasingGroup();
826
+ if (f.length > 0) {
827
+ writer.writeString(
828
+ 12,
829
+ f
830
+ );
831
+ }
832
+ f = message.getCustomTransactionList();
833
+ if (f.length > 0) {
834
+ writer.writeRepeatedMessage(
835
+ 13,
836
+ f,
837
+ prisca_v1_core_transaction_builder_transaction_builder_pb.Value.serializeBinaryToWriter
838
+ );
839
+ }
840
+ f = message.getReferencesId();
841
+ if (f.length > 0) {
842
+ writer.writeString(
843
+ 14,
844
+ f
845
+ );
846
+ }
847
+ f = message.getCreatedAt();
848
+ if (f.length > 0) {
849
+ writer.writeString(
850
+ 15,
851
+ f
852
+ );
853
+ }
854
+ f = message.getUpdatedAt();
855
+ if (f.length > 0) {
856
+ writer.writeString(
857
+ 16,
858
+ f
859
+ );
860
+ }
861
+ };
862
+
863
+
864
+ /**
865
+ * optional int64 id = 1;
866
+ * @return {number}
867
+ */
868
+ proto.PurchaseRequisitionTrx.prototype.getId = function() {
869
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
870
+ };
871
+
872
+
873
+ /**
874
+ * @param {number} value
875
+ * @return {!proto.PurchaseRequisitionTrx} returns this
876
+ */
877
+ proto.PurchaseRequisitionTrx.prototype.setId = function(value) {
878
+ return jspb.Message.setProto3IntField(this, 1, value);
879
+ };
880
+
881
+
882
+ /**
883
+ * optional string title = 2;
884
+ * @return {string}
885
+ */
886
+ proto.PurchaseRequisitionTrx.prototype.getTitle = function() {
887
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
888
+ };
889
+
890
+
891
+ /**
892
+ * @param {string} value
893
+ * @return {!proto.PurchaseRequisitionTrx} returns this
894
+ */
895
+ proto.PurchaseRequisitionTrx.prototype.setTitle = function(value) {
896
+ return jspb.Message.setProto3StringField(this, 2, value);
897
+ };
898
+
899
+
900
+ /**
901
+ * optional string purchase_requisition_transaction_number = 3;
902
+ * @return {string}
903
+ */
904
+ proto.PurchaseRequisitionTrx.prototype.getPurchaseRequisitionTransactionNumber = function() {
905
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
906
+ };
907
+
908
+
909
+ /**
910
+ * @param {string} value
911
+ * @return {!proto.PurchaseRequisitionTrx} returns this
912
+ */
913
+ proto.PurchaseRequisitionTrx.prototype.setPurchaseRequisitionTransactionNumber = function(value) {
914
+ return jspb.Message.setProto3StringField(this, 3, value);
915
+ };
916
+
917
+
918
+ /**
919
+ * optional string item_category_ref = 4;
920
+ * @return {string}
921
+ */
922
+ proto.PurchaseRequisitionTrx.prototype.getItemCategoryRef = function() {
923
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
924
+ };
925
+
926
+
927
+ /**
928
+ * @param {string} value
929
+ * @return {!proto.PurchaseRequisitionTrx} returns this
930
+ */
931
+ proto.PurchaseRequisitionTrx.prototype.setItemCategoryRef = function(value) {
932
+ return jspb.Message.setProto3StringField(this, 4, value);
933
+ };
934
+
935
+
936
+ /**
937
+ * optional string account_assigment_ref = 5;
938
+ * @return {string}
939
+ */
940
+ proto.PurchaseRequisitionTrx.prototype.getAccountAssigmentRef = function() {
941
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
942
+ };
943
+
944
+
945
+ /**
946
+ * @param {string} value
947
+ * @return {!proto.PurchaseRequisitionTrx} returns this
948
+ */
949
+ proto.PurchaseRequisitionTrx.prototype.setAccountAssigmentRef = function(value) {
950
+ return jspb.Message.setProto3StringField(this, 5, value);
951
+ };
952
+
953
+
954
+ /**
955
+ * optional string currency_ref = 6;
956
+ * @return {string}
957
+ */
958
+ proto.PurchaseRequisitionTrx.prototype.getCurrencyRef = function() {
959
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
960
+ };
961
+
962
+
963
+ /**
964
+ * @param {string} value
965
+ * @return {!proto.PurchaseRequisitionTrx} returns this
966
+ */
967
+ proto.PurchaseRequisitionTrx.prototype.setCurrencyRef = function(value) {
968
+ return jspb.Message.setProto3StringField(this, 6, value);
969
+ };
970
+
971
+
972
+ /**
973
+ * optional string purchase_requisition_type = 7;
974
+ * @return {string}
975
+ */
976
+ proto.PurchaseRequisitionTrx.prototype.getPurchaseRequisitionType = function() {
977
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
978
+ };
979
+
980
+
981
+ /**
982
+ * @param {string} value
983
+ * @return {!proto.PurchaseRequisitionTrx} returns this
984
+ */
985
+ proto.PurchaseRequisitionTrx.prototype.setPurchaseRequisitionType = function(value) {
986
+ return jspb.Message.setProto3StringField(this, 7, value);
987
+ };
988
+
989
+
990
+ /**
991
+ * optional string department = 8;
992
+ * @return {string}
993
+ */
994
+ proto.PurchaseRequisitionTrx.prototype.getDepartment = function() {
995
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
996
+ };
997
+
998
+
999
+ /**
1000
+ * @param {string} value
1001
+ * @return {!proto.PurchaseRequisitionTrx} returns this
1002
+ */
1003
+ proto.PurchaseRequisitionTrx.prototype.setDepartment = function(value) {
1004
+ return jspb.Message.setProto3StringField(this, 8, value);
1005
+ };
1006
+
1007
+
1008
+ /**
1009
+ * optional string purchasing_organization = 9;
1010
+ * @return {string}
1011
+ */
1012
+ proto.PurchaseRequisitionTrx.prototype.getPurchasingOrganization = function() {
1013
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1014
+ };
1015
+
1016
+
1017
+ /**
1018
+ * @param {string} value
1019
+ * @return {!proto.PurchaseRequisitionTrx} returns this
1020
+ */
1021
+ proto.PurchaseRequisitionTrx.prototype.setPurchasingOrganization = function(value) {
1022
+ return jspb.Message.setProto3StringField(this, 9, value);
1023
+ };
1024
+
1025
+
1026
+ /**
1027
+ * optional string email_cc = 10;
1028
+ * @return {string}
1029
+ */
1030
+ proto.PurchaseRequisitionTrx.prototype.getEmailCc = function() {
1031
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
1032
+ };
1033
+
1034
+
1035
+ /**
1036
+ * @param {string} value
1037
+ * @return {!proto.PurchaseRequisitionTrx} returns this
1038
+ */
1039
+ proto.PurchaseRequisitionTrx.prototype.setEmailCc = function(value) {
1040
+ return jspb.Message.setProto3StringField(this, 10, value);
1041
+ };
1042
+
1043
+
1044
+ /**
1045
+ * optional string plant_ref = 11;
1046
+ * @return {string}
1047
+ */
1048
+ proto.PurchaseRequisitionTrx.prototype.getPlantRef = function() {
1049
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
1050
+ };
1051
+
1052
+
1053
+ /**
1054
+ * @param {string} value
1055
+ * @return {!proto.PurchaseRequisitionTrx} returns this
1056
+ */
1057
+ proto.PurchaseRequisitionTrx.prototype.setPlantRef = function(value) {
1058
+ return jspb.Message.setProto3StringField(this, 11, value);
1059
+ };
1060
+
1061
+
1062
+ /**
1063
+ * optional string purchasing_group = 12;
1064
+ * @return {string}
1065
+ */
1066
+ proto.PurchaseRequisitionTrx.prototype.getPurchasingGroup = function() {
1067
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
1068
+ };
1069
+
1070
+
1071
+ /**
1072
+ * @param {string} value
1073
+ * @return {!proto.PurchaseRequisitionTrx} returns this
1074
+ */
1075
+ proto.PurchaseRequisitionTrx.prototype.setPurchasingGroup = function(value) {
1076
+ return jspb.Message.setProto3StringField(this, 12, value);
1077
+ };
1078
+
1079
+
1080
+ /**
1081
+ * repeated prisca.v1.core.transaction_builder.Value custom_transaction = 13;
1082
+ * @return {!Array<!proto.prisca.v1.core.transaction_builder.Value>}
1083
+ */
1084
+ proto.PurchaseRequisitionTrx.prototype.getCustomTransactionList = function() {
1085
+ return /** @type{!Array<!proto.prisca.v1.core.transaction_builder.Value>} */ (
1086
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_transaction_builder_transaction_builder_pb.Value, 13));
1087
+ };
1088
+
1089
+
1090
+ /**
1091
+ * @param {!Array<!proto.prisca.v1.core.transaction_builder.Value>} value
1092
+ * @return {!proto.PurchaseRequisitionTrx} returns this
1093
+ */
1094
+ proto.PurchaseRequisitionTrx.prototype.setCustomTransactionList = function(value) {
1095
+ return jspb.Message.setRepeatedWrapperField(this, 13, value);
1096
+ };
1097
+
1098
+
1099
+ /**
1100
+ * @param {!proto.prisca.v1.core.transaction_builder.Value=} opt_value
1101
+ * @param {number=} opt_index
1102
+ * @return {!proto.prisca.v1.core.transaction_builder.Value}
1103
+ */
1104
+ proto.PurchaseRequisitionTrx.prototype.addCustomTransaction = function(opt_value, opt_index) {
1105
+ return jspb.Message.addToRepeatedWrapperField(this, 13, opt_value, proto.prisca.v1.core.transaction_builder.Value, opt_index);
1106
+ };
1107
+
1108
+
1109
+ /**
1110
+ * Clears the list making it empty but non-null.
1111
+ * @return {!proto.PurchaseRequisitionTrx} returns this
1112
+ */
1113
+ proto.PurchaseRequisitionTrx.prototype.clearCustomTransactionList = function() {
1114
+ return this.setCustomTransactionList([]);
1115
+ };
1116
+
1117
+
1118
+ /**
1119
+ * optional string references_id = 14;
1120
+ * @return {string}
1121
+ */
1122
+ proto.PurchaseRequisitionTrx.prototype.getReferencesId = function() {
1123
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
1124
+ };
1125
+
1126
+
1127
+ /**
1128
+ * @param {string} value
1129
+ * @return {!proto.PurchaseRequisitionTrx} returns this
1130
+ */
1131
+ proto.PurchaseRequisitionTrx.prototype.setReferencesId = function(value) {
1132
+ return jspb.Message.setProto3StringField(this, 14, value);
1133
+ };
1134
+
1135
+
1136
+ /**
1137
+ * optional string created_at = 15;
1138
+ * @return {string}
1139
+ */
1140
+ proto.PurchaseRequisitionTrx.prototype.getCreatedAt = function() {
1141
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
1142
+ };
1143
+
1144
+
1145
+ /**
1146
+ * @param {string} value
1147
+ * @return {!proto.PurchaseRequisitionTrx} returns this
1148
+ */
1149
+ proto.PurchaseRequisitionTrx.prototype.setCreatedAt = function(value) {
1150
+ return jspb.Message.setProto3StringField(this, 15, value);
1151
+ };
1152
+
1153
+
1154
+ /**
1155
+ * optional string updated_at = 16;
1156
+ * @return {string}
1157
+ */
1158
+ proto.PurchaseRequisitionTrx.prototype.getUpdatedAt = function() {
1159
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
1160
+ };
1161
+
1162
+
1163
+ /**
1164
+ * @param {string} value
1165
+ * @return {!proto.PurchaseRequisitionTrx} returns this
1166
+ */
1167
+ proto.PurchaseRequisitionTrx.prototype.setUpdatedAt = function(value) {
1168
+ return jspb.Message.setProto3StringField(this, 16, value);
1169
+ };
1170
+
1171
+
1172
+
1173
+ /**
1174
+ * List of repeated fields within this message type.
1175
+ * @private {!Array<number>}
1176
+ * @const
1177
+ */
1178
+ proto.BasePurchaseRequisitionTrx.repeatedFields_ = [12];
1179
+
1180
+
1181
+
1182
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1183
+ /**
1184
+ * Creates an object representation of this proto.
1185
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1186
+ * Optional fields that are not set will be set to undefined.
1187
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1188
+ * For the list of reserved names please see:
1189
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1190
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1191
+ * JSPB instance for transitional soy proto support:
1192
+ * http://goto/soy-param-migration
1193
+ * @return {!Object}
1194
+ */
1195
+ proto.BasePurchaseRequisitionTrx.prototype.toObject = function(opt_includeInstance) {
1196
+ return proto.BasePurchaseRequisitionTrx.toObject(opt_includeInstance, this);
1197
+ };
1198
+
1199
+
1200
+ /**
1201
+ * Static version of the {@see toObject} method.
1202
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1203
+ * the JSPB instance for transitional soy proto support:
1204
+ * http://goto/soy-param-migration
1205
+ * @param {!proto.BasePurchaseRequisitionTrx} msg The msg instance to transform.
1206
+ * @return {!Object}
1207
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1208
+ */
1209
+ proto.BasePurchaseRequisitionTrx.toObject = function(includeInstance, msg) {
1210
+ var f, obj = {
1211
+ title: jspb.Message.getFieldWithDefault(msg, 1, ""),
1212
+ purchaseRequisitionTransactionNumber: jspb.Message.getFieldWithDefault(msg, 2, ""),
1213
+ itemCategoryRef: jspb.Message.getFieldWithDefault(msg, 3, ""),
1214
+ accountAssigmentRef: jspb.Message.getFieldWithDefault(msg, 4, ""),
1215
+ currencyRef: jspb.Message.getFieldWithDefault(msg, 5, ""),
1216
+ purchaseRequisitionType: jspb.Message.getFieldWithDefault(msg, 6, ""),
1217
+ department: jspb.Message.getFieldWithDefault(msg, 7, ""),
1218
+ purchasingOrganization: jspb.Message.getFieldWithDefault(msg, 8, ""),
1219
+ emailCc: jspb.Message.getFieldWithDefault(msg, 9, ""),
1220
+ plantRef: jspb.Message.getFieldWithDefault(msg, 10, ""),
1221
+ purchasingGroup: jspb.Message.getFieldWithDefault(msg, 11, ""),
1222
+ customTransactionList: jspb.Message.toObjectList(msg.getCustomTransactionList(),
1223
+ prisca_v1_core_transaction_builder_transaction_builder_pb.Value.toObject, includeInstance)
1224
+ };
1225
+
1226
+ if (includeInstance) {
1227
+ obj.$jspbMessageInstance = msg;
1228
+ }
1229
+ return obj;
1230
+ };
1231
+ }
1232
+
1233
+
1234
+ /**
1235
+ * Deserializes binary data (in protobuf wire format).
1236
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1237
+ * @return {!proto.BasePurchaseRequisitionTrx}
1238
+ */
1239
+ proto.BasePurchaseRequisitionTrx.deserializeBinary = function(bytes) {
1240
+ var reader = new jspb.BinaryReader(bytes);
1241
+ var msg = new proto.BasePurchaseRequisitionTrx;
1242
+ return proto.BasePurchaseRequisitionTrx.deserializeBinaryFromReader(msg, reader);
1243
+ };
1244
+
1245
+
1246
+ /**
1247
+ * Deserializes binary data (in protobuf wire format) from the
1248
+ * given reader into the given message object.
1249
+ * @param {!proto.BasePurchaseRequisitionTrx} msg The message object to deserialize into.
1250
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1251
+ * @return {!proto.BasePurchaseRequisitionTrx}
1252
+ */
1253
+ proto.BasePurchaseRequisitionTrx.deserializeBinaryFromReader = function(msg, reader) {
1254
+ while (reader.nextField()) {
1255
+ if (reader.isEndGroup()) {
1256
+ break;
1257
+ }
1258
+ var field = reader.getFieldNumber();
1259
+ switch (field) {
1260
+ case 1:
1261
+ var value = /** @type {string} */ (reader.readString());
1262
+ msg.setTitle(value);
1263
+ break;
1264
+ case 2:
1265
+ var value = /** @type {string} */ (reader.readString());
1266
+ msg.setPurchaseRequisitionTransactionNumber(value);
1267
+ break;
1268
+ case 3:
1269
+ var value = /** @type {string} */ (reader.readString());
1270
+ msg.setItemCategoryRef(value);
1271
+ break;
1272
+ case 4:
1273
+ var value = /** @type {string} */ (reader.readString());
1274
+ msg.setAccountAssigmentRef(value);
1275
+ break;
1276
+ case 5:
1277
+ var value = /** @type {string} */ (reader.readString());
1278
+ msg.setCurrencyRef(value);
1279
+ break;
1280
+ case 6:
1281
+ var value = /** @type {string} */ (reader.readString());
1282
+ msg.setPurchaseRequisitionType(value);
1283
+ break;
1284
+ case 7:
1285
+ var value = /** @type {string} */ (reader.readString());
1286
+ msg.setDepartment(value);
1287
+ break;
1288
+ case 8:
1289
+ var value = /** @type {string} */ (reader.readString());
1290
+ msg.setPurchasingOrganization(value);
1291
+ break;
1292
+ case 9:
1293
+ var value = /** @type {string} */ (reader.readString());
1294
+ msg.setEmailCc(value);
1295
+ break;
1296
+ case 10:
1297
+ var value = /** @type {string} */ (reader.readString());
1298
+ msg.setPlantRef(value);
1299
+ break;
1300
+ case 11:
1301
+ var value = /** @type {string} */ (reader.readString());
1302
+ msg.setPurchasingGroup(value);
1303
+ break;
1304
+ case 12:
1305
+ var value = new prisca_v1_core_transaction_builder_transaction_builder_pb.Value;
1306
+ reader.readMessage(value,prisca_v1_core_transaction_builder_transaction_builder_pb.Value.deserializeBinaryFromReader);
1307
+ msg.addCustomTransaction(value);
1308
+ break;
1309
+ default:
1310
+ reader.skipField();
1311
+ break;
1312
+ }
1313
+ }
1314
+ return msg;
1315
+ };
1316
+
1317
+
1318
+ /**
1319
+ * Serializes the message to binary data (in protobuf wire format).
1320
+ * @return {!Uint8Array}
1321
+ */
1322
+ proto.BasePurchaseRequisitionTrx.prototype.serializeBinary = function() {
1323
+ var writer = new jspb.BinaryWriter();
1324
+ proto.BasePurchaseRequisitionTrx.serializeBinaryToWriter(this, writer);
1325
+ return writer.getResultBuffer();
1326
+ };
1327
+
1328
+
1329
+ /**
1330
+ * Serializes the given message to binary data (in protobuf wire
1331
+ * format), writing to the given BinaryWriter.
1332
+ * @param {!proto.BasePurchaseRequisitionTrx} message
1333
+ * @param {!jspb.BinaryWriter} writer
1334
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1335
+ */
1336
+ proto.BasePurchaseRequisitionTrx.serializeBinaryToWriter = function(message, writer) {
1337
+ var f = undefined;
1338
+ f = message.getTitle();
1339
+ if (f.length > 0) {
1340
+ writer.writeString(
1341
+ 1,
1342
+ f
1343
+ );
1344
+ }
1345
+ f = message.getPurchaseRequisitionTransactionNumber();
1346
+ if (f.length > 0) {
1347
+ writer.writeString(
1348
+ 2,
1349
+ f
1350
+ );
1351
+ }
1352
+ f = message.getItemCategoryRef();
1353
+ if (f.length > 0) {
1354
+ writer.writeString(
1355
+ 3,
1356
+ f
1357
+ );
1358
+ }
1359
+ f = message.getAccountAssigmentRef();
1360
+ if (f.length > 0) {
1361
+ writer.writeString(
1362
+ 4,
1363
+ f
1364
+ );
1365
+ }
1366
+ f = message.getCurrencyRef();
1367
+ if (f.length > 0) {
1368
+ writer.writeString(
1369
+ 5,
1370
+ f
1371
+ );
1372
+ }
1373
+ f = message.getPurchaseRequisitionType();
1374
+ if (f.length > 0) {
1375
+ writer.writeString(
1376
+ 6,
1377
+ f
1378
+ );
1379
+ }
1380
+ f = message.getDepartment();
1381
+ if (f.length > 0) {
1382
+ writer.writeString(
1383
+ 7,
1384
+ f
1385
+ );
1386
+ }
1387
+ f = message.getPurchasingOrganization();
1388
+ if (f.length > 0) {
1389
+ writer.writeString(
1390
+ 8,
1391
+ f
1392
+ );
1393
+ }
1394
+ f = message.getEmailCc();
1395
+ if (f.length > 0) {
1396
+ writer.writeString(
1397
+ 9,
1398
+ f
1399
+ );
1400
+ }
1401
+ f = message.getPlantRef();
1402
+ if (f.length > 0) {
1403
+ writer.writeString(
1404
+ 10,
1405
+ f
1406
+ );
1407
+ }
1408
+ f = message.getPurchasingGroup();
1409
+ if (f.length > 0) {
1410
+ writer.writeString(
1411
+ 11,
1412
+ f
1413
+ );
1414
+ }
1415
+ f = message.getCustomTransactionList();
1416
+ if (f.length > 0) {
1417
+ writer.writeRepeatedMessage(
1418
+ 12,
1419
+ f,
1420
+ prisca_v1_core_transaction_builder_transaction_builder_pb.Value.serializeBinaryToWriter
1421
+ );
1422
+ }
1423
+ };
1424
+
1425
+
1426
+ /**
1427
+ * optional string title = 1;
1428
+ * @return {string}
1429
+ */
1430
+ proto.BasePurchaseRequisitionTrx.prototype.getTitle = function() {
1431
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1432
+ };
1433
+
1434
+
1435
+ /**
1436
+ * @param {string} value
1437
+ * @return {!proto.BasePurchaseRequisitionTrx} returns this
1438
+ */
1439
+ proto.BasePurchaseRequisitionTrx.prototype.setTitle = function(value) {
1440
+ return jspb.Message.setProto3StringField(this, 1, value);
1441
+ };
1442
+
1443
+
1444
+ /**
1445
+ * optional string purchase_requisition_transaction_number = 2;
1446
+ * @return {string}
1447
+ */
1448
+ proto.BasePurchaseRequisitionTrx.prototype.getPurchaseRequisitionTransactionNumber = function() {
1449
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1450
+ };
1451
+
1452
+
1453
+ /**
1454
+ * @param {string} value
1455
+ * @return {!proto.BasePurchaseRequisitionTrx} returns this
1456
+ */
1457
+ proto.BasePurchaseRequisitionTrx.prototype.setPurchaseRequisitionTransactionNumber = function(value) {
1458
+ return jspb.Message.setProto3StringField(this, 2, value);
1459
+ };
1460
+
1461
+
1462
+ /**
1463
+ * optional string item_category_ref = 3;
1464
+ * @return {string}
1465
+ */
1466
+ proto.BasePurchaseRequisitionTrx.prototype.getItemCategoryRef = function() {
1467
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1468
+ };
1469
+
1470
+
1471
+ /**
1472
+ * @param {string} value
1473
+ * @return {!proto.BasePurchaseRequisitionTrx} returns this
1474
+ */
1475
+ proto.BasePurchaseRequisitionTrx.prototype.setItemCategoryRef = function(value) {
1476
+ return jspb.Message.setProto3StringField(this, 3, value);
1477
+ };
1478
+
1479
+
1480
+ /**
1481
+ * optional string account_assigment_ref = 4;
1482
+ * @return {string}
1483
+ */
1484
+ proto.BasePurchaseRequisitionTrx.prototype.getAccountAssigmentRef = function() {
1485
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1486
+ };
1487
+
1488
+
1489
+ /**
1490
+ * @param {string} value
1491
+ * @return {!proto.BasePurchaseRequisitionTrx} returns this
1492
+ */
1493
+ proto.BasePurchaseRequisitionTrx.prototype.setAccountAssigmentRef = function(value) {
1494
+ return jspb.Message.setProto3StringField(this, 4, value);
1495
+ };
1496
+
1497
+
1498
+ /**
1499
+ * optional string currency_ref = 5;
1500
+ * @return {string}
1501
+ */
1502
+ proto.BasePurchaseRequisitionTrx.prototype.getCurrencyRef = function() {
1503
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1504
+ };
1505
+
1506
+
1507
+ /**
1508
+ * @param {string} value
1509
+ * @return {!proto.BasePurchaseRequisitionTrx} returns this
1510
+ */
1511
+ proto.BasePurchaseRequisitionTrx.prototype.setCurrencyRef = function(value) {
1512
+ return jspb.Message.setProto3StringField(this, 5, value);
1513
+ };
1514
+
1515
+
1516
+ /**
1517
+ * optional string purchase_requisition_type = 6;
1518
+ * @return {string}
1519
+ */
1520
+ proto.BasePurchaseRequisitionTrx.prototype.getPurchaseRequisitionType = function() {
1521
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1522
+ };
1523
+
1524
+
1525
+ /**
1526
+ * @param {string} value
1527
+ * @return {!proto.BasePurchaseRequisitionTrx} returns this
1528
+ */
1529
+ proto.BasePurchaseRequisitionTrx.prototype.setPurchaseRequisitionType = function(value) {
1530
+ return jspb.Message.setProto3StringField(this, 6, value);
1531
+ };
1532
+
1533
+
1534
+ /**
1535
+ * optional string department = 7;
1536
+ * @return {string}
1537
+ */
1538
+ proto.BasePurchaseRequisitionTrx.prototype.getDepartment = function() {
1539
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1540
+ };
1541
+
1542
+
1543
+ /**
1544
+ * @param {string} value
1545
+ * @return {!proto.BasePurchaseRequisitionTrx} returns this
1546
+ */
1547
+ proto.BasePurchaseRequisitionTrx.prototype.setDepartment = function(value) {
1548
+ return jspb.Message.setProto3StringField(this, 7, value);
1549
+ };
1550
+
1551
+
1552
+ /**
1553
+ * optional string purchasing_organization = 8;
1554
+ * @return {string}
1555
+ */
1556
+ proto.BasePurchaseRequisitionTrx.prototype.getPurchasingOrganization = function() {
1557
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1558
+ };
1559
+
1560
+
1561
+ /**
1562
+ * @param {string} value
1563
+ * @return {!proto.BasePurchaseRequisitionTrx} returns this
1564
+ */
1565
+ proto.BasePurchaseRequisitionTrx.prototype.setPurchasingOrganization = function(value) {
1566
+ return jspb.Message.setProto3StringField(this, 8, value);
1567
+ };
1568
+
1569
+
1570
+ /**
1571
+ * optional string email_cc = 9;
1572
+ * @return {string}
1573
+ */
1574
+ proto.BasePurchaseRequisitionTrx.prototype.getEmailCc = function() {
1575
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1576
+ };
1577
+
1578
+
1579
+ /**
1580
+ * @param {string} value
1581
+ * @return {!proto.BasePurchaseRequisitionTrx} returns this
1582
+ */
1583
+ proto.BasePurchaseRequisitionTrx.prototype.setEmailCc = function(value) {
1584
+ return jspb.Message.setProto3StringField(this, 9, value);
1585
+ };
1586
+
1587
+
1588
+ /**
1589
+ * optional string plant_ref = 10;
1590
+ * @return {string}
1591
+ */
1592
+ proto.BasePurchaseRequisitionTrx.prototype.getPlantRef = function() {
1593
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
1594
+ };
1595
+
1596
+
1597
+ /**
1598
+ * @param {string} value
1599
+ * @return {!proto.BasePurchaseRequisitionTrx} returns this
1600
+ */
1601
+ proto.BasePurchaseRequisitionTrx.prototype.setPlantRef = function(value) {
1602
+ return jspb.Message.setProto3StringField(this, 10, value);
1603
+ };
1604
+
1605
+
1606
+ /**
1607
+ * optional string purchasing_group = 11;
1608
+ * @return {string}
1609
+ */
1610
+ proto.BasePurchaseRequisitionTrx.prototype.getPurchasingGroup = function() {
1611
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
1612
+ };
1613
+
1614
+
1615
+ /**
1616
+ * @param {string} value
1617
+ * @return {!proto.BasePurchaseRequisitionTrx} returns this
1618
+ */
1619
+ proto.BasePurchaseRequisitionTrx.prototype.setPurchasingGroup = function(value) {
1620
+ return jspb.Message.setProto3StringField(this, 11, value);
1621
+ };
1622
+
1623
+
1624
+ /**
1625
+ * repeated prisca.v1.core.transaction_builder.Value custom_transaction = 12;
1626
+ * @return {!Array<!proto.prisca.v1.core.transaction_builder.Value>}
1627
+ */
1628
+ proto.BasePurchaseRequisitionTrx.prototype.getCustomTransactionList = function() {
1629
+ return /** @type{!Array<!proto.prisca.v1.core.transaction_builder.Value>} */ (
1630
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_transaction_builder_transaction_builder_pb.Value, 12));
1631
+ };
1632
+
1633
+
1634
+ /**
1635
+ * @param {!Array<!proto.prisca.v1.core.transaction_builder.Value>} value
1636
+ * @return {!proto.BasePurchaseRequisitionTrx} returns this
1637
+ */
1638
+ proto.BasePurchaseRequisitionTrx.prototype.setCustomTransactionList = function(value) {
1639
+ return jspb.Message.setRepeatedWrapperField(this, 12, value);
1640
+ };
1641
+
1642
+
1643
+ /**
1644
+ * @param {!proto.prisca.v1.core.transaction_builder.Value=} opt_value
1645
+ * @param {number=} opt_index
1646
+ * @return {!proto.prisca.v1.core.transaction_builder.Value}
1647
+ */
1648
+ proto.BasePurchaseRequisitionTrx.prototype.addCustomTransaction = function(opt_value, opt_index) {
1649
+ return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.prisca.v1.core.transaction_builder.Value, opt_index);
1650
+ };
1651
+
1652
+
1653
+ /**
1654
+ * Clears the list making it empty but non-null.
1655
+ * @return {!proto.BasePurchaseRequisitionTrx} returns this
1656
+ */
1657
+ proto.BasePurchaseRequisitionTrx.prototype.clearCustomTransactionList = function() {
1658
+ return this.setCustomTransactionList([]);
1659
+ };
1660
+
1661
+
1662
+
1663
+
1664
+
1665
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1666
+ /**
1667
+ * Creates an object representation of this proto.
1668
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1669
+ * Optional fields that are not set will be set to undefined.
1670
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1671
+ * For the list of reserved names please see:
1672
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1673
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1674
+ * JSPB instance for transitional soy proto support:
1675
+ * http://goto/soy-param-migration
1676
+ * @return {!Object}
1677
+ */
1678
+ proto.CreatePurchaseRequisitionTrxRequest.prototype.toObject = function(opt_includeInstance) {
1679
+ return proto.CreatePurchaseRequisitionTrxRequest.toObject(opt_includeInstance, this);
1680
+ };
1681
+
1682
+
1683
+ /**
1684
+ * Static version of the {@see toObject} method.
1685
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1686
+ * the JSPB instance for transitional soy proto support:
1687
+ * http://goto/soy-param-migration
1688
+ * @param {!proto.CreatePurchaseRequisitionTrxRequest} msg The msg instance to transform.
1689
+ * @return {!Object}
1690
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1691
+ */
1692
+ proto.CreatePurchaseRequisitionTrxRequest.toObject = function(includeInstance, msg) {
1693
+ var f, obj = {
1694
+ purchaseRequisitionTransaction: (f = msg.getPurchaseRequisitionTransaction()) && proto.BasePurchaseRequisitionTrx.toObject(includeInstance, f)
1695
+ };
1696
+
1697
+ if (includeInstance) {
1698
+ obj.$jspbMessageInstance = msg;
1699
+ }
1700
+ return obj;
1701
+ };
1702
+ }
1703
+
1704
+
1705
+ /**
1706
+ * Deserializes binary data (in protobuf wire format).
1707
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1708
+ * @return {!proto.CreatePurchaseRequisitionTrxRequest}
1709
+ */
1710
+ proto.CreatePurchaseRequisitionTrxRequest.deserializeBinary = function(bytes) {
1711
+ var reader = new jspb.BinaryReader(bytes);
1712
+ var msg = new proto.CreatePurchaseRequisitionTrxRequest;
1713
+ return proto.CreatePurchaseRequisitionTrxRequest.deserializeBinaryFromReader(msg, reader);
1714
+ };
1715
+
1716
+
1717
+ /**
1718
+ * Deserializes binary data (in protobuf wire format) from the
1719
+ * given reader into the given message object.
1720
+ * @param {!proto.CreatePurchaseRequisitionTrxRequest} msg The message object to deserialize into.
1721
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1722
+ * @return {!proto.CreatePurchaseRequisitionTrxRequest}
1723
+ */
1724
+ proto.CreatePurchaseRequisitionTrxRequest.deserializeBinaryFromReader = function(msg, reader) {
1725
+ while (reader.nextField()) {
1726
+ if (reader.isEndGroup()) {
1727
+ break;
1728
+ }
1729
+ var field = reader.getFieldNumber();
1730
+ switch (field) {
1731
+ case 1:
1732
+ var value = new proto.BasePurchaseRequisitionTrx;
1733
+ reader.readMessage(value,proto.BasePurchaseRequisitionTrx.deserializeBinaryFromReader);
1734
+ msg.setPurchaseRequisitionTransaction(value);
1735
+ break;
1736
+ default:
1737
+ reader.skipField();
1738
+ break;
1739
+ }
1740
+ }
1741
+ return msg;
1742
+ };
1743
+
1744
+
1745
+ /**
1746
+ * Serializes the message to binary data (in protobuf wire format).
1747
+ * @return {!Uint8Array}
1748
+ */
1749
+ proto.CreatePurchaseRequisitionTrxRequest.prototype.serializeBinary = function() {
1750
+ var writer = new jspb.BinaryWriter();
1751
+ proto.CreatePurchaseRequisitionTrxRequest.serializeBinaryToWriter(this, writer);
1752
+ return writer.getResultBuffer();
1753
+ };
1754
+
1755
+
1756
+ /**
1757
+ * Serializes the given message to binary data (in protobuf wire
1758
+ * format), writing to the given BinaryWriter.
1759
+ * @param {!proto.CreatePurchaseRequisitionTrxRequest} message
1760
+ * @param {!jspb.BinaryWriter} writer
1761
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1762
+ */
1763
+ proto.CreatePurchaseRequisitionTrxRequest.serializeBinaryToWriter = function(message, writer) {
1764
+ var f = undefined;
1765
+ f = message.getPurchaseRequisitionTransaction();
1766
+ if (f != null) {
1767
+ writer.writeMessage(
1768
+ 1,
1769
+ f,
1770
+ proto.BasePurchaseRequisitionTrx.serializeBinaryToWriter
1771
+ );
1772
+ }
1773
+ };
1774
+
1775
+
1776
+ /**
1777
+ * optional BasePurchaseRequisitionTrx purchase_requisition_transaction = 1;
1778
+ * @return {?proto.BasePurchaseRequisitionTrx}
1779
+ */
1780
+ proto.CreatePurchaseRequisitionTrxRequest.prototype.getPurchaseRequisitionTransaction = function() {
1781
+ return /** @type{?proto.BasePurchaseRequisitionTrx} */ (
1782
+ jspb.Message.getWrapperField(this, proto.BasePurchaseRequisitionTrx, 1));
1783
+ };
1784
+
1785
+
1786
+ /**
1787
+ * @param {?proto.BasePurchaseRequisitionTrx|undefined} value
1788
+ * @return {!proto.CreatePurchaseRequisitionTrxRequest} returns this
1789
+ */
1790
+ proto.CreatePurchaseRequisitionTrxRequest.prototype.setPurchaseRequisitionTransaction = function(value) {
1791
+ return jspb.Message.setWrapperField(this, 1, value);
1792
+ };
1793
+
1794
+
1795
+ /**
1796
+ * Clears the message field making it undefined.
1797
+ * @return {!proto.CreatePurchaseRequisitionTrxRequest} returns this
1798
+ */
1799
+ proto.CreatePurchaseRequisitionTrxRequest.prototype.clearPurchaseRequisitionTransaction = function() {
1800
+ return this.setPurchaseRequisitionTransaction(undefined);
1801
+ };
1802
+
1803
+
1804
+ /**
1805
+ * Returns whether this field is set.
1806
+ * @return {boolean}
1807
+ */
1808
+ proto.CreatePurchaseRequisitionTrxRequest.prototype.hasPurchaseRequisitionTransaction = function() {
1809
+ return jspb.Message.getField(this, 1) != null;
1810
+ };
1811
+
1812
+
1813
+
1814
+
1815
+
1816
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1817
+ /**
1818
+ * Creates an object representation of this proto.
1819
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1820
+ * Optional fields that are not set will be set to undefined.
1821
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1822
+ * For the list of reserved names please see:
1823
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1824
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1825
+ * JSPB instance for transitional soy proto support:
1826
+ * http://goto/soy-param-migration
1827
+ * @return {!Object}
1828
+ */
1829
+ proto.UpdatePurchaseRequisitionTrxRequest.prototype.toObject = function(opt_includeInstance) {
1830
+ return proto.UpdatePurchaseRequisitionTrxRequest.toObject(opt_includeInstance, this);
1831
+ };
1832
+
1833
+
1834
+ /**
1835
+ * Static version of the {@see toObject} method.
1836
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1837
+ * the JSPB instance for transitional soy proto support:
1838
+ * http://goto/soy-param-migration
1839
+ * @param {!proto.UpdatePurchaseRequisitionTrxRequest} msg The msg instance to transform.
1840
+ * @return {!Object}
1841
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1842
+ */
1843
+ proto.UpdatePurchaseRequisitionTrxRequest.toObject = function(includeInstance, msg) {
1844
+ var f, obj = {
1845
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1846
+ purchaseRequisitionTransaction: (f = msg.getPurchaseRequisitionTransaction()) && proto.BasePurchaseRequisitionTrx.toObject(includeInstance, f)
1847
+ };
1848
+
1849
+ if (includeInstance) {
1850
+ obj.$jspbMessageInstance = msg;
1851
+ }
1852
+ return obj;
1853
+ };
1854
+ }
1855
+
1856
+
1857
+ /**
1858
+ * Deserializes binary data (in protobuf wire format).
1859
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1860
+ * @return {!proto.UpdatePurchaseRequisitionTrxRequest}
1861
+ */
1862
+ proto.UpdatePurchaseRequisitionTrxRequest.deserializeBinary = function(bytes) {
1863
+ var reader = new jspb.BinaryReader(bytes);
1864
+ var msg = new proto.UpdatePurchaseRequisitionTrxRequest;
1865
+ return proto.UpdatePurchaseRequisitionTrxRequest.deserializeBinaryFromReader(msg, reader);
1866
+ };
1867
+
1868
+
1869
+ /**
1870
+ * Deserializes binary data (in protobuf wire format) from the
1871
+ * given reader into the given message object.
1872
+ * @param {!proto.UpdatePurchaseRequisitionTrxRequest} msg The message object to deserialize into.
1873
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1874
+ * @return {!proto.UpdatePurchaseRequisitionTrxRequest}
1875
+ */
1876
+ proto.UpdatePurchaseRequisitionTrxRequest.deserializeBinaryFromReader = function(msg, reader) {
1877
+ while (reader.nextField()) {
1878
+ if (reader.isEndGroup()) {
1879
+ break;
1880
+ }
1881
+ var field = reader.getFieldNumber();
1882
+ switch (field) {
1883
+ case 1:
1884
+ var value = /** @type {number} */ (reader.readInt64());
1885
+ msg.setId(value);
1886
+ break;
1887
+ case 2:
1888
+ var value = new proto.BasePurchaseRequisitionTrx;
1889
+ reader.readMessage(value,proto.BasePurchaseRequisitionTrx.deserializeBinaryFromReader);
1890
+ msg.setPurchaseRequisitionTransaction(value);
1891
+ break;
1892
+ default:
1893
+ reader.skipField();
1894
+ break;
1895
+ }
1896
+ }
1897
+ return msg;
1898
+ };
1899
+
1900
+
1901
+ /**
1902
+ * Serializes the message to binary data (in protobuf wire format).
1903
+ * @return {!Uint8Array}
1904
+ */
1905
+ proto.UpdatePurchaseRequisitionTrxRequest.prototype.serializeBinary = function() {
1906
+ var writer = new jspb.BinaryWriter();
1907
+ proto.UpdatePurchaseRequisitionTrxRequest.serializeBinaryToWriter(this, writer);
1908
+ return writer.getResultBuffer();
1909
+ };
1910
+
1911
+
1912
+ /**
1913
+ * Serializes the given message to binary data (in protobuf wire
1914
+ * format), writing to the given BinaryWriter.
1915
+ * @param {!proto.UpdatePurchaseRequisitionTrxRequest} message
1916
+ * @param {!jspb.BinaryWriter} writer
1917
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1918
+ */
1919
+ proto.UpdatePurchaseRequisitionTrxRequest.serializeBinaryToWriter = function(message, writer) {
1920
+ var f = undefined;
1921
+ f = message.getId();
1922
+ if (f !== 0) {
1923
+ writer.writeInt64(
1924
+ 1,
1925
+ f
1926
+ );
1927
+ }
1928
+ f = message.getPurchaseRequisitionTransaction();
1929
+ if (f != null) {
1930
+ writer.writeMessage(
1931
+ 2,
1932
+ f,
1933
+ proto.BasePurchaseRequisitionTrx.serializeBinaryToWriter
1934
+ );
1935
+ }
1936
+ };
1937
+
1938
+
1939
+ /**
1940
+ * optional int64 id = 1;
1941
+ * @return {number}
1942
+ */
1943
+ proto.UpdatePurchaseRequisitionTrxRequest.prototype.getId = function() {
1944
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1945
+ };
1946
+
1947
+
1948
+ /**
1949
+ * @param {number} value
1950
+ * @return {!proto.UpdatePurchaseRequisitionTrxRequest} returns this
1951
+ */
1952
+ proto.UpdatePurchaseRequisitionTrxRequest.prototype.setId = function(value) {
1953
+ return jspb.Message.setProto3IntField(this, 1, value);
1954
+ };
1955
+
1956
+
1957
+ /**
1958
+ * optional BasePurchaseRequisitionTrx purchase_requisition_transaction = 2;
1959
+ * @return {?proto.BasePurchaseRequisitionTrx}
1960
+ */
1961
+ proto.UpdatePurchaseRequisitionTrxRequest.prototype.getPurchaseRequisitionTransaction = function() {
1962
+ return /** @type{?proto.BasePurchaseRequisitionTrx} */ (
1963
+ jspb.Message.getWrapperField(this, proto.BasePurchaseRequisitionTrx, 2));
1964
+ };
1965
+
1966
+
1967
+ /**
1968
+ * @param {?proto.BasePurchaseRequisitionTrx|undefined} value
1969
+ * @return {!proto.UpdatePurchaseRequisitionTrxRequest} returns this
1970
+ */
1971
+ proto.UpdatePurchaseRequisitionTrxRequest.prototype.setPurchaseRequisitionTransaction = function(value) {
1972
+ return jspb.Message.setWrapperField(this, 2, value);
1973
+ };
1974
+
1975
+
1976
+ /**
1977
+ * Clears the message field making it undefined.
1978
+ * @return {!proto.UpdatePurchaseRequisitionTrxRequest} returns this
1979
+ */
1980
+ proto.UpdatePurchaseRequisitionTrxRequest.prototype.clearPurchaseRequisitionTransaction = function() {
1981
+ return this.setPurchaseRequisitionTransaction(undefined);
1982
+ };
1983
+
1984
+
1985
+ /**
1986
+ * Returns whether this field is set.
1987
+ * @return {boolean}
1988
+ */
1989
+ proto.UpdatePurchaseRequisitionTrxRequest.prototype.hasPurchaseRequisitionTransaction = function() {
1990
+ return jspb.Message.getField(this, 2) != null;
1991
+ };
1992
+
1993
+
1994
+
1995
+
1996
+
1997
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1998
+ /**
1999
+ * Creates an object representation of this proto.
2000
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2001
+ * Optional fields that are not set will be set to undefined.
2002
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2003
+ * For the list of reserved names please see:
2004
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2005
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2006
+ * JSPB instance for transitional soy proto support:
2007
+ * http://goto/soy-param-migration
2008
+ * @return {!Object}
2009
+ */
2010
+ proto.GetPurchaseRequisitionTrxByIdRequest.prototype.toObject = function(opt_includeInstance) {
2011
+ return proto.GetPurchaseRequisitionTrxByIdRequest.toObject(opt_includeInstance, this);
2012
+ };
2013
+
2014
+
2015
+ /**
2016
+ * Static version of the {@see toObject} method.
2017
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2018
+ * the JSPB instance for transitional soy proto support:
2019
+ * http://goto/soy-param-migration
2020
+ * @param {!proto.GetPurchaseRequisitionTrxByIdRequest} msg The msg instance to transform.
2021
+ * @return {!Object}
2022
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2023
+ */
2024
+ proto.GetPurchaseRequisitionTrxByIdRequest.toObject = function(includeInstance, msg) {
2025
+ var f, obj = {
2026
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
2027
+ };
2028
+
2029
+ if (includeInstance) {
2030
+ obj.$jspbMessageInstance = msg;
2031
+ }
2032
+ return obj;
2033
+ };
2034
+ }
2035
+
2036
+
2037
+ /**
2038
+ * Deserializes binary data (in protobuf wire format).
2039
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2040
+ * @return {!proto.GetPurchaseRequisitionTrxByIdRequest}
2041
+ */
2042
+ proto.GetPurchaseRequisitionTrxByIdRequest.deserializeBinary = function(bytes) {
2043
+ var reader = new jspb.BinaryReader(bytes);
2044
+ var msg = new proto.GetPurchaseRequisitionTrxByIdRequest;
2045
+ return proto.GetPurchaseRequisitionTrxByIdRequest.deserializeBinaryFromReader(msg, reader);
2046
+ };
2047
+
2048
+
2049
+ /**
2050
+ * Deserializes binary data (in protobuf wire format) from the
2051
+ * given reader into the given message object.
2052
+ * @param {!proto.GetPurchaseRequisitionTrxByIdRequest} msg The message object to deserialize into.
2053
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2054
+ * @return {!proto.GetPurchaseRequisitionTrxByIdRequest}
2055
+ */
2056
+ proto.GetPurchaseRequisitionTrxByIdRequest.deserializeBinaryFromReader = function(msg, reader) {
2057
+ while (reader.nextField()) {
2058
+ if (reader.isEndGroup()) {
2059
+ break;
2060
+ }
2061
+ var field = reader.getFieldNumber();
2062
+ switch (field) {
2063
+ case 1:
2064
+ var value = /** @type {number} */ (reader.readInt64());
2065
+ msg.setId(value);
2066
+ break;
2067
+ default:
2068
+ reader.skipField();
2069
+ break;
2070
+ }
2071
+ }
2072
+ return msg;
2073
+ };
2074
+
2075
+
2076
+ /**
2077
+ * Serializes the message to binary data (in protobuf wire format).
2078
+ * @return {!Uint8Array}
2079
+ */
2080
+ proto.GetPurchaseRequisitionTrxByIdRequest.prototype.serializeBinary = function() {
2081
+ var writer = new jspb.BinaryWriter();
2082
+ proto.GetPurchaseRequisitionTrxByIdRequest.serializeBinaryToWriter(this, writer);
2083
+ return writer.getResultBuffer();
2084
+ };
2085
+
2086
+
2087
+ /**
2088
+ * Serializes the given message to binary data (in protobuf wire
2089
+ * format), writing to the given BinaryWriter.
2090
+ * @param {!proto.GetPurchaseRequisitionTrxByIdRequest} message
2091
+ * @param {!jspb.BinaryWriter} writer
2092
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2093
+ */
2094
+ proto.GetPurchaseRequisitionTrxByIdRequest.serializeBinaryToWriter = function(message, writer) {
2095
+ var f = undefined;
2096
+ f = message.getId();
2097
+ if (f !== 0) {
2098
+ writer.writeInt64(
2099
+ 1,
2100
+ f
2101
+ );
2102
+ }
2103
+ };
2104
+
2105
+
2106
+ /**
2107
+ * optional int64 id = 1;
2108
+ * @return {number}
2109
+ */
2110
+ proto.GetPurchaseRequisitionTrxByIdRequest.prototype.getId = function() {
2111
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2112
+ };
2113
+
2114
+
2115
+ /**
2116
+ * @param {number} value
2117
+ * @return {!proto.GetPurchaseRequisitionTrxByIdRequest} returns this
2118
+ */
2119
+ proto.GetPurchaseRequisitionTrxByIdRequest.prototype.setId = function(value) {
2120
+ return jspb.Message.setProto3IntField(this, 1, value);
2121
+ };
2122
+
2123
+
2124
+
2125
+
2126
+
2127
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2128
+ /**
2129
+ * Creates an object representation of this proto.
2130
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2131
+ * Optional fields that are not set will be set to undefined.
2132
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2133
+ * For the list of reserved names please see:
2134
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2135
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2136
+ * JSPB instance for transitional soy proto support:
2137
+ * http://goto/soy-param-migration
2138
+ * @return {!Object}
2139
+ */
2140
+ proto.GetPurchaseRequisitionTrxListRequest.prototype.toObject = function(opt_includeInstance) {
2141
+ return proto.GetPurchaseRequisitionTrxListRequest.toObject(opt_includeInstance, this);
2142
+ };
2143
+
2144
+
2145
+ /**
2146
+ * Static version of the {@see toObject} method.
2147
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2148
+ * the JSPB instance for transitional soy proto support:
2149
+ * http://goto/soy-param-migration
2150
+ * @param {!proto.GetPurchaseRequisitionTrxListRequest} msg The msg instance to transform.
2151
+ * @return {!Object}
2152
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2153
+ */
2154
+ proto.GetPurchaseRequisitionTrxListRequest.toObject = function(includeInstance, msg) {
2155
+ var f, obj = {
2156
+ pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f)
2157
+ };
2158
+
2159
+ if (includeInstance) {
2160
+ obj.$jspbMessageInstance = msg;
2161
+ }
2162
+ return obj;
2163
+ };
2164
+ }
2165
+
2166
+
2167
+ /**
2168
+ * Deserializes binary data (in protobuf wire format).
2169
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2170
+ * @return {!proto.GetPurchaseRequisitionTrxListRequest}
2171
+ */
2172
+ proto.GetPurchaseRequisitionTrxListRequest.deserializeBinary = function(bytes) {
2173
+ var reader = new jspb.BinaryReader(bytes);
2174
+ var msg = new proto.GetPurchaseRequisitionTrxListRequest;
2175
+ return proto.GetPurchaseRequisitionTrxListRequest.deserializeBinaryFromReader(msg, reader);
2176
+ };
2177
+
2178
+
2179
+ /**
2180
+ * Deserializes binary data (in protobuf wire format) from the
2181
+ * given reader into the given message object.
2182
+ * @param {!proto.GetPurchaseRequisitionTrxListRequest} msg The message object to deserialize into.
2183
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2184
+ * @return {!proto.GetPurchaseRequisitionTrxListRequest}
2185
+ */
2186
+ proto.GetPurchaseRequisitionTrxListRequest.deserializeBinaryFromReader = function(msg, reader) {
2187
+ while (reader.nextField()) {
2188
+ if (reader.isEndGroup()) {
2189
+ break;
2190
+ }
2191
+ var field = reader.getFieldNumber();
2192
+ switch (field) {
2193
+ case 1:
2194
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
2195
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
2196
+ msg.setPagination(value);
2197
+ break;
2198
+ default:
2199
+ reader.skipField();
2200
+ break;
2201
+ }
2202
+ }
2203
+ return msg;
2204
+ };
2205
+
2206
+
2207
+ /**
2208
+ * Serializes the message to binary data (in protobuf wire format).
2209
+ * @return {!Uint8Array}
2210
+ */
2211
+ proto.GetPurchaseRequisitionTrxListRequest.prototype.serializeBinary = function() {
2212
+ var writer = new jspb.BinaryWriter();
2213
+ proto.GetPurchaseRequisitionTrxListRequest.serializeBinaryToWriter(this, writer);
2214
+ return writer.getResultBuffer();
2215
+ };
2216
+
2217
+
2218
+ /**
2219
+ * Serializes the given message to binary data (in protobuf wire
2220
+ * format), writing to the given BinaryWriter.
2221
+ * @param {!proto.GetPurchaseRequisitionTrxListRequest} message
2222
+ * @param {!jspb.BinaryWriter} writer
2223
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2224
+ */
2225
+ proto.GetPurchaseRequisitionTrxListRequest.serializeBinaryToWriter = function(message, writer) {
2226
+ var f = undefined;
2227
+ f = message.getPagination();
2228
+ if (f != null) {
2229
+ writer.writeMessage(
2230
+ 1,
2231
+ f,
2232
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
2233
+ );
2234
+ }
2235
+ };
2236
+
2237
+
2238
+ /**
2239
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
2240
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
2241
+ */
2242
+ proto.GetPurchaseRequisitionTrxListRequest.prototype.getPagination = function() {
2243
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
2244
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
2245
+ };
2246
+
2247
+
2248
+ /**
2249
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
2250
+ * @return {!proto.GetPurchaseRequisitionTrxListRequest} returns this
2251
+ */
2252
+ proto.GetPurchaseRequisitionTrxListRequest.prototype.setPagination = function(value) {
2253
+ return jspb.Message.setWrapperField(this, 1, value);
2254
+ };
2255
+
2256
+
2257
+ /**
2258
+ * Clears the message field making it undefined.
2259
+ * @return {!proto.GetPurchaseRequisitionTrxListRequest} returns this
2260
+ */
2261
+ proto.GetPurchaseRequisitionTrxListRequest.prototype.clearPagination = function() {
2262
+ return this.setPagination(undefined);
2263
+ };
2264
+
2265
+
2266
+ /**
2267
+ * Returns whether this field is set.
2268
+ * @return {boolean}
2269
+ */
2270
+ proto.GetPurchaseRequisitionTrxListRequest.prototype.hasPagination = function() {
2271
+ return jspb.Message.getField(this, 1) != null;
2272
+ };
2273
+
2274
+
2275
+
2276
+
2277
+
2278
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2279
+ /**
2280
+ * Creates an object representation of this proto.
2281
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2282
+ * Optional fields that are not set will be set to undefined.
2283
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2284
+ * For the list of reserved names please see:
2285
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2286
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2287
+ * JSPB instance for transitional soy proto support:
2288
+ * http://goto/soy-param-migration
2289
+ * @return {!Object}
2290
+ */
2291
+ proto.GetPurchaseRequisitionTrxDetailByIdRequest.prototype.toObject = function(opt_includeInstance) {
2292
+ return proto.GetPurchaseRequisitionTrxDetailByIdRequest.toObject(opt_includeInstance, this);
2293
+ };
2294
+
2295
+
2296
+ /**
2297
+ * Static version of the {@see toObject} method.
2298
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2299
+ * the JSPB instance for transitional soy proto support:
2300
+ * http://goto/soy-param-migration
2301
+ * @param {!proto.GetPurchaseRequisitionTrxDetailByIdRequest} msg The msg instance to transform.
2302
+ * @return {!Object}
2303
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2304
+ */
2305
+ proto.GetPurchaseRequisitionTrxDetailByIdRequest.toObject = function(includeInstance, msg) {
2306
+ var f, obj = {
2307
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
2308
+ trxBuilderId: jspb.Message.getFieldWithDefault(msg, 2, 0)
2309
+ };
2310
+
2311
+ if (includeInstance) {
2312
+ obj.$jspbMessageInstance = msg;
2313
+ }
2314
+ return obj;
2315
+ };
2316
+ }
2317
+
2318
+
2319
+ /**
2320
+ * Deserializes binary data (in protobuf wire format).
2321
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2322
+ * @return {!proto.GetPurchaseRequisitionTrxDetailByIdRequest}
2323
+ */
2324
+ proto.GetPurchaseRequisitionTrxDetailByIdRequest.deserializeBinary = function(bytes) {
2325
+ var reader = new jspb.BinaryReader(bytes);
2326
+ var msg = new proto.GetPurchaseRequisitionTrxDetailByIdRequest;
2327
+ return proto.GetPurchaseRequisitionTrxDetailByIdRequest.deserializeBinaryFromReader(msg, reader);
2328
+ };
2329
+
2330
+
2331
+ /**
2332
+ * Deserializes binary data (in protobuf wire format) from the
2333
+ * given reader into the given message object.
2334
+ * @param {!proto.GetPurchaseRequisitionTrxDetailByIdRequest} msg The message object to deserialize into.
2335
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2336
+ * @return {!proto.GetPurchaseRequisitionTrxDetailByIdRequest}
2337
+ */
2338
+ proto.GetPurchaseRequisitionTrxDetailByIdRequest.deserializeBinaryFromReader = function(msg, reader) {
2339
+ while (reader.nextField()) {
2340
+ if (reader.isEndGroup()) {
2341
+ break;
2342
+ }
2343
+ var field = reader.getFieldNumber();
2344
+ switch (field) {
2345
+ case 1:
2346
+ var value = /** @type {number} */ (reader.readInt64());
2347
+ msg.setId(value);
2348
+ break;
2349
+ case 2:
2350
+ var value = /** @type {number} */ (reader.readInt64());
2351
+ msg.setTrxBuilderId(value);
2352
+ break;
2353
+ default:
2354
+ reader.skipField();
2355
+ break;
2356
+ }
2357
+ }
2358
+ return msg;
2359
+ };
2360
+
2361
+
2362
+ /**
2363
+ * Serializes the message to binary data (in protobuf wire format).
2364
+ * @return {!Uint8Array}
2365
+ */
2366
+ proto.GetPurchaseRequisitionTrxDetailByIdRequest.prototype.serializeBinary = function() {
2367
+ var writer = new jspb.BinaryWriter();
2368
+ proto.GetPurchaseRequisitionTrxDetailByIdRequest.serializeBinaryToWriter(this, writer);
2369
+ return writer.getResultBuffer();
2370
+ };
2371
+
2372
+
2373
+ /**
2374
+ * Serializes the given message to binary data (in protobuf wire
2375
+ * format), writing to the given BinaryWriter.
2376
+ * @param {!proto.GetPurchaseRequisitionTrxDetailByIdRequest} message
2377
+ * @param {!jspb.BinaryWriter} writer
2378
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2379
+ */
2380
+ proto.GetPurchaseRequisitionTrxDetailByIdRequest.serializeBinaryToWriter = function(message, writer) {
2381
+ var f = undefined;
2382
+ f = message.getId();
2383
+ if (f !== 0) {
2384
+ writer.writeInt64(
2385
+ 1,
2386
+ f
2387
+ );
2388
+ }
2389
+ f = message.getTrxBuilderId();
2390
+ if (f !== 0) {
2391
+ writer.writeInt64(
2392
+ 2,
2393
+ f
2394
+ );
2395
+ }
2396
+ };
2397
+
2398
+
2399
+ /**
2400
+ * optional int64 id = 1;
2401
+ * @return {number}
2402
+ */
2403
+ proto.GetPurchaseRequisitionTrxDetailByIdRequest.prototype.getId = function() {
2404
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2405
+ };
2406
+
2407
+
2408
+ /**
2409
+ * @param {number} value
2410
+ * @return {!proto.GetPurchaseRequisitionTrxDetailByIdRequest} returns this
2411
+ */
2412
+ proto.GetPurchaseRequisitionTrxDetailByIdRequest.prototype.setId = function(value) {
2413
+ return jspb.Message.setProto3IntField(this, 1, value);
2414
+ };
2415
+
2416
+
2417
+ /**
2418
+ * optional int64 trx_builder_id = 2;
2419
+ * @return {number}
2420
+ */
2421
+ proto.GetPurchaseRequisitionTrxDetailByIdRequest.prototype.getTrxBuilderId = function() {
2422
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2423
+ };
2424
+
2425
+
2426
+ /**
2427
+ * @param {number} value
2428
+ * @return {!proto.GetPurchaseRequisitionTrxDetailByIdRequest} returns this
2429
+ */
2430
+ proto.GetPurchaseRequisitionTrxDetailByIdRequest.prototype.setTrxBuilderId = function(value) {
2431
+ return jspb.Message.setProto3IntField(this, 2, value);
2432
+ };
2433
+
2434
+
2435
+
2436
+
2437
+
2438
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2439
+ /**
2440
+ * Creates an object representation of this proto.
2441
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2442
+ * Optional fields that are not set will be set to undefined.
2443
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2444
+ * For the list of reserved names please see:
2445
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2446
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2447
+ * JSPB instance for transitional soy proto support:
2448
+ * http://goto/soy-param-migration
2449
+ * @return {!Object}
2450
+ */
2451
+ proto.GetPurchaseRequisitionTrxDetailListRequest.prototype.toObject = function(opt_includeInstance) {
2452
+ return proto.GetPurchaseRequisitionTrxDetailListRequest.toObject(opt_includeInstance, this);
2453
+ };
2454
+
2455
+
2456
+ /**
2457
+ * Static version of the {@see toObject} method.
2458
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2459
+ * the JSPB instance for transitional soy proto support:
2460
+ * http://goto/soy-param-migration
2461
+ * @param {!proto.GetPurchaseRequisitionTrxDetailListRequest} msg The msg instance to transform.
2462
+ * @return {!Object}
2463
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2464
+ */
2465
+ proto.GetPurchaseRequisitionTrxDetailListRequest.toObject = function(includeInstance, msg) {
2466
+ var f, obj = {
2467
+ pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
2468
+ trxBuilderId: jspb.Message.getFieldWithDefault(msg, 2, 0)
2469
+ };
2470
+
2471
+ if (includeInstance) {
2472
+ obj.$jspbMessageInstance = msg;
2473
+ }
2474
+ return obj;
2475
+ };
2476
+ }
2477
+
2478
+
2479
+ /**
2480
+ * Deserializes binary data (in protobuf wire format).
2481
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2482
+ * @return {!proto.GetPurchaseRequisitionTrxDetailListRequest}
2483
+ */
2484
+ proto.GetPurchaseRequisitionTrxDetailListRequest.deserializeBinary = function(bytes) {
2485
+ var reader = new jspb.BinaryReader(bytes);
2486
+ var msg = new proto.GetPurchaseRequisitionTrxDetailListRequest;
2487
+ return proto.GetPurchaseRequisitionTrxDetailListRequest.deserializeBinaryFromReader(msg, reader);
2488
+ };
2489
+
2490
+
2491
+ /**
2492
+ * Deserializes binary data (in protobuf wire format) from the
2493
+ * given reader into the given message object.
2494
+ * @param {!proto.GetPurchaseRequisitionTrxDetailListRequest} msg The message object to deserialize into.
2495
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2496
+ * @return {!proto.GetPurchaseRequisitionTrxDetailListRequest}
2497
+ */
2498
+ proto.GetPurchaseRequisitionTrxDetailListRequest.deserializeBinaryFromReader = function(msg, reader) {
2499
+ while (reader.nextField()) {
2500
+ if (reader.isEndGroup()) {
2501
+ break;
2502
+ }
2503
+ var field = reader.getFieldNumber();
2504
+ switch (field) {
2505
+ case 1:
2506
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
2507
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
2508
+ msg.setPagination(value);
2509
+ break;
2510
+ case 2:
2511
+ var value = /** @type {number} */ (reader.readInt64());
2512
+ msg.setTrxBuilderId(value);
2513
+ break;
2514
+ default:
2515
+ reader.skipField();
2516
+ break;
2517
+ }
2518
+ }
2519
+ return msg;
2520
+ };
2521
+
2522
+
2523
+ /**
2524
+ * Serializes the message to binary data (in protobuf wire format).
2525
+ * @return {!Uint8Array}
2526
+ */
2527
+ proto.GetPurchaseRequisitionTrxDetailListRequest.prototype.serializeBinary = function() {
2528
+ var writer = new jspb.BinaryWriter();
2529
+ proto.GetPurchaseRequisitionTrxDetailListRequest.serializeBinaryToWriter(this, writer);
2530
+ return writer.getResultBuffer();
2531
+ };
2532
+
2533
+
2534
+ /**
2535
+ * Serializes the given message to binary data (in protobuf wire
2536
+ * format), writing to the given BinaryWriter.
2537
+ * @param {!proto.GetPurchaseRequisitionTrxDetailListRequest} message
2538
+ * @param {!jspb.BinaryWriter} writer
2539
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2540
+ */
2541
+ proto.GetPurchaseRequisitionTrxDetailListRequest.serializeBinaryToWriter = function(message, writer) {
2542
+ var f = undefined;
2543
+ f = message.getPagination();
2544
+ if (f != null) {
2545
+ writer.writeMessage(
2546
+ 1,
2547
+ f,
2548
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
2549
+ );
2550
+ }
2551
+ f = message.getTrxBuilderId();
2552
+ if (f !== 0) {
2553
+ writer.writeInt64(
2554
+ 2,
2555
+ f
2556
+ );
2557
+ }
2558
+ };
2559
+
2560
+
2561
+ /**
2562
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
2563
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
2564
+ */
2565
+ proto.GetPurchaseRequisitionTrxDetailListRequest.prototype.getPagination = function() {
2566
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
2567
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
2568
+ };
2569
+
2570
+
2571
+ /**
2572
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
2573
+ * @return {!proto.GetPurchaseRequisitionTrxDetailListRequest} returns this
2574
+ */
2575
+ proto.GetPurchaseRequisitionTrxDetailListRequest.prototype.setPagination = function(value) {
2576
+ return jspb.Message.setWrapperField(this, 1, value);
2577
+ };
2578
+
2579
+
2580
+ /**
2581
+ * Clears the message field making it undefined.
2582
+ * @return {!proto.GetPurchaseRequisitionTrxDetailListRequest} returns this
2583
+ */
2584
+ proto.GetPurchaseRequisitionTrxDetailListRequest.prototype.clearPagination = function() {
2585
+ return this.setPagination(undefined);
2586
+ };
2587
+
2588
+
2589
+ /**
2590
+ * Returns whether this field is set.
2591
+ * @return {boolean}
2592
+ */
2593
+ proto.GetPurchaseRequisitionTrxDetailListRequest.prototype.hasPagination = function() {
2594
+ return jspb.Message.getField(this, 1) != null;
2595
+ };
2596
+
2597
+
2598
+ /**
2599
+ * optional int64 trx_builder_id = 2;
2600
+ * @return {number}
2601
+ */
2602
+ proto.GetPurchaseRequisitionTrxDetailListRequest.prototype.getTrxBuilderId = function() {
2603
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2604
+ };
2605
+
2606
+
2607
+ /**
2608
+ * @param {number} value
2609
+ * @return {!proto.GetPurchaseRequisitionTrxDetailListRequest} returns this
2610
+ */
2611
+ proto.GetPurchaseRequisitionTrxDetailListRequest.prototype.setTrxBuilderId = function(value) {
2612
+ return jspb.Message.setProto3IntField(this, 2, value);
2613
+ };
2614
+
2615
+
2616
+
2617
+
2618
+
2619
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2620
+ /**
2621
+ * Creates an object representation of this proto.
2622
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2623
+ * Optional fields that are not set will be set to undefined.
2624
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2625
+ * For the list of reserved names please see:
2626
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2627
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2628
+ * JSPB instance for transitional soy proto support:
2629
+ * http://goto/soy-param-migration
2630
+ * @return {!Object}
2631
+ */
2632
+ proto.GetPurchaseRequisitionTrxDetailListDetailRequest.prototype.toObject = function(opt_includeInstance) {
2633
+ return proto.GetPurchaseRequisitionTrxDetailListDetailRequest.toObject(opt_includeInstance, this);
2634
+ };
2635
+
2636
+
2637
+ /**
2638
+ * Static version of the {@see toObject} method.
2639
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2640
+ * the JSPB instance for transitional soy proto support:
2641
+ * http://goto/soy-param-migration
2642
+ * @param {!proto.GetPurchaseRequisitionTrxDetailListDetailRequest} msg The msg instance to transform.
2643
+ * @return {!Object}
2644
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2645
+ */
2646
+ proto.GetPurchaseRequisitionTrxDetailListDetailRequest.toObject = function(includeInstance, msg) {
2647
+ var f, obj = {
2648
+ pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
2649
+ trxBuilderId: jspb.Message.getFieldWithDefault(msg, 2, 0)
2650
+ };
2651
+
2652
+ if (includeInstance) {
2653
+ obj.$jspbMessageInstance = msg;
2654
+ }
2655
+ return obj;
2656
+ };
2657
+ }
2658
+
2659
+
2660
+ /**
2661
+ * Deserializes binary data (in protobuf wire format).
2662
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2663
+ * @return {!proto.GetPurchaseRequisitionTrxDetailListDetailRequest}
2664
+ */
2665
+ proto.GetPurchaseRequisitionTrxDetailListDetailRequest.deserializeBinary = function(bytes) {
2666
+ var reader = new jspb.BinaryReader(bytes);
2667
+ var msg = new proto.GetPurchaseRequisitionTrxDetailListDetailRequest;
2668
+ return proto.GetPurchaseRequisitionTrxDetailListDetailRequest.deserializeBinaryFromReader(msg, reader);
2669
+ };
2670
+
2671
+
2672
+ /**
2673
+ * Deserializes binary data (in protobuf wire format) from the
2674
+ * given reader into the given message object.
2675
+ * @param {!proto.GetPurchaseRequisitionTrxDetailListDetailRequest} msg The message object to deserialize into.
2676
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2677
+ * @return {!proto.GetPurchaseRequisitionTrxDetailListDetailRequest}
2678
+ */
2679
+ proto.GetPurchaseRequisitionTrxDetailListDetailRequest.deserializeBinaryFromReader = function(msg, reader) {
2680
+ while (reader.nextField()) {
2681
+ if (reader.isEndGroup()) {
2682
+ break;
2683
+ }
2684
+ var field = reader.getFieldNumber();
2685
+ switch (field) {
2686
+ case 1:
2687
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
2688
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
2689
+ msg.setPagination(value);
2690
+ break;
2691
+ case 2:
2692
+ var value = /** @type {number} */ (reader.readInt64());
2693
+ msg.setTrxBuilderId(value);
2694
+ break;
2695
+ default:
2696
+ reader.skipField();
2697
+ break;
2698
+ }
2699
+ }
2700
+ return msg;
2701
+ };
2702
+
2703
+
2704
+ /**
2705
+ * Serializes the message to binary data (in protobuf wire format).
2706
+ * @return {!Uint8Array}
2707
+ */
2708
+ proto.GetPurchaseRequisitionTrxDetailListDetailRequest.prototype.serializeBinary = function() {
2709
+ var writer = new jspb.BinaryWriter();
2710
+ proto.GetPurchaseRequisitionTrxDetailListDetailRequest.serializeBinaryToWriter(this, writer);
2711
+ return writer.getResultBuffer();
2712
+ };
2713
+
2714
+
2715
+ /**
2716
+ * Serializes the given message to binary data (in protobuf wire
2717
+ * format), writing to the given BinaryWriter.
2718
+ * @param {!proto.GetPurchaseRequisitionTrxDetailListDetailRequest} message
2719
+ * @param {!jspb.BinaryWriter} writer
2720
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2721
+ */
2722
+ proto.GetPurchaseRequisitionTrxDetailListDetailRequest.serializeBinaryToWriter = function(message, writer) {
2723
+ var f = undefined;
2724
+ f = message.getPagination();
2725
+ if (f != null) {
2726
+ writer.writeMessage(
2727
+ 1,
2728
+ f,
2729
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
2730
+ );
2731
+ }
2732
+ f = message.getTrxBuilderId();
2733
+ if (f !== 0) {
2734
+ writer.writeInt64(
2735
+ 2,
2736
+ f
2737
+ );
2738
+ }
2739
+ };
2740
+
2741
+
2742
+ /**
2743
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
2744
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
2745
+ */
2746
+ proto.GetPurchaseRequisitionTrxDetailListDetailRequest.prototype.getPagination = function() {
2747
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
2748
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
2749
+ };
2750
+
2751
+
2752
+ /**
2753
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
2754
+ * @return {!proto.GetPurchaseRequisitionTrxDetailListDetailRequest} returns this
2755
+ */
2756
+ proto.GetPurchaseRequisitionTrxDetailListDetailRequest.prototype.setPagination = function(value) {
2757
+ return jspb.Message.setWrapperField(this, 1, value);
2758
+ };
2759
+
2760
+
2761
+ /**
2762
+ * Clears the message field making it undefined.
2763
+ * @return {!proto.GetPurchaseRequisitionTrxDetailListDetailRequest} returns this
2764
+ */
2765
+ proto.GetPurchaseRequisitionTrxDetailListDetailRequest.prototype.clearPagination = function() {
2766
+ return this.setPagination(undefined);
2767
+ };
2768
+
2769
+
2770
+ /**
2771
+ * Returns whether this field is set.
2772
+ * @return {boolean}
2773
+ */
2774
+ proto.GetPurchaseRequisitionTrxDetailListDetailRequest.prototype.hasPagination = function() {
2775
+ return jspb.Message.getField(this, 1) != null;
2776
+ };
2777
+
2778
+
2779
+ /**
2780
+ * optional int64 trx_builder_id = 2;
2781
+ * @return {number}
2782
+ */
2783
+ proto.GetPurchaseRequisitionTrxDetailListDetailRequest.prototype.getTrxBuilderId = function() {
2784
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2785
+ };
2786
+
2787
+
2788
+ /**
2789
+ * @param {number} value
2790
+ * @return {!proto.GetPurchaseRequisitionTrxDetailListDetailRequest} returns this
2791
+ */
2792
+ proto.GetPurchaseRequisitionTrxDetailListDetailRequest.prototype.setTrxBuilderId = function(value) {
2793
+ return jspb.Message.setProto3IntField(this, 2, value);
2794
+ };
2795
+
2796
+
2797
+
2798
+
2799
+
2800
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2801
+ /**
2802
+ * Creates an object representation of this proto.
2803
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2804
+ * Optional fields that are not set will be set to undefined.
2805
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2806
+ * For the list of reserved names please see:
2807
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2808
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2809
+ * JSPB instance for transitional soy proto support:
2810
+ * http://goto/soy-param-migration
2811
+ * @return {!Object}
2812
+ */
2813
+ proto.CreatePurchaseRequisitionTrxResponse.prototype.toObject = function(opt_includeInstance) {
2814
+ return proto.CreatePurchaseRequisitionTrxResponse.toObject(opt_includeInstance, this);
2815
+ };
2816
+
2817
+
2818
+ /**
2819
+ * Static version of the {@see toObject} method.
2820
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2821
+ * the JSPB instance for transitional soy proto support:
2822
+ * http://goto/soy-param-migration
2823
+ * @param {!proto.CreatePurchaseRequisitionTrxResponse} msg The msg instance to transform.
2824
+ * @return {!Object}
2825
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2826
+ */
2827
+ proto.CreatePurchaseRequisitionTrxResponse.toObject = function(includeInstance, msg) {
2828
+ var f, obj = {
2829
+ purchaseRequisitionTransaction: (f = msg.getPurchaseRequisitionTransaction()) && proto.PurchaseRequisitionTrx.toObject(includeInstance, f),
2830
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2831
+ };
2832
+
2833
+ if (includeInstance) {
2834
+ obj.$jspbMessageInstance = msg;
2835
+ }
2836
+ return obj;
2837
+ };
2838
+ }
2839
+
2840
+
2841
+ /**
2842
+ * Deserializes binary data (in protobuf wire format).
2843
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2844
+ * @return {!proto.CreatePurchaseRequisitionTrxResponse}
2845
+ */
2846
+ proto.CreatePurchaseRequisitionTrxResponse.deserializeBinary = function(bytes) {
2847
+ var reader = new jspb.BinaryReader(bytes);
2848
+ var msg = new proto.CreatePurchaseRequisitionTrxResponse;
2849
+ return proto.CreatePurchaseRequisitionTrxResponse.deserializeBinaryFromReader(msg, reader);
2850
+ };
2851
+
2852
+
2853
+ /**
2854
+ * Deserializes binary data (in protobuf wire format) from the
2855
+ * given reader into the given message object.
2856
+ * @param {!proto.CreatePurchaseRequisitionTrxResponse} msg The message object to deserialize into.
2857
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2858
+ * @return {!proto.CreatePurchaseRequisitionTrxResponse}
2859
+ */
2860
+ proto.CreatePurchaseRequisitionTrxResponse.deserializeBinaryFromReader = function(msg, reader) {
2861
+ while (reader.nextField()) {
2862
+ if (reader.isEndGroup()) {
2863
+ break;
2864
+ }
2865
+ var field = reader.getFieldNumber();
2866
+ switch (field) {
2867
+ case 1:
2868
+ var value = new proto.PurchaseRequisitionTrx;
2869
+ reader.readMessage(value,proto.PurchaseRequisitionTrx.deserializeBinaryFromReader);
2870
+ msg.setPurchaseRequisitionTransaction(value);
2871
+ break;
2872
+ case 2:
2873
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2874
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2875
+ msg.setMeta(value);
2876
+ break;
2877
+ default:
2878
+ reader.skipField();
2879
+ break;
2880
+ }
2881
+ }
2882
+ return msg;
2883
+ };
2884
+
2885
+
2886
+ /**
2887
+ * Serializes the message to binary data (in protobuf wire format).
2888
+ * @return {!Uint8Array}
2889
+ */
2890
+ proto.CreatePurchaseRequisitionTrxResponse.prototype.serializeBinary = function() {
2891
+ var writer = new jspb.BinaryWriter();
2892
+ proto.CreatePurchaseRequisitionTrxResponse.serializeBinaryToWriter(this, writer);
2893
+ return writer.getResultBuffer();
2894
+ };
2895
+
2896
+
2897
+ /**
2898
+ * Serializes the given message to binary data (in protobuf wire
2899
+ * format), writing to the given BinaryWriter.
2900
+ * @param {!proto.CreatePurchaseRequisitionTrxResponse} message
2901
+ * @param {!jspb.BinaryWriter} writer
2902
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2903
+ */
2904
+ proto.CreatePurchaseRequisitionTrxResponse.serializeBinaryToWriter = function(message, writer) {
2905
+ var f = undefined;
2906
+ f = message.getPurchaseRequisitionTransaction();
2907
+ if (f != null) {
2908
+ writer.writeMessage(
2909
+ 1,
2910
+ f,
2911
+ proto.PurchaseRequisitionTrx.serializeBinaryToWriter
2912
+ );
2913
+ }
2914
+ f = message.getMeta();
2915
+ if (f != null) {
2916
+ writer.writeMessage(
2917
+ 2,
2918
+ f,
2919
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2920
+ );
2921
+ }
2922
+ };
2923
+
2924
+
2925
+ /**
2926
+ * optional PurchaseRequisitionTrx purchase_requisition_transaction = 1;
2927
+ * @return {?proto.PurchaseRequisitionTrx}
2928
+ */
2929
+ proto.CreatePurchaseRequisitionTrxResponse.prototype.getPurchaseRequisitionTransaction = function() {
2930
+ return /** @type{?proto.PurchaseRequisitionTrx} */ (
2931
+ jspb.Message.getWrapperField(this, proto.PurchaseRequisitionTrx, 1));
2932
+ };
2933
+
2934
+
2935
+ /**
2936
+ * @param {?proto.PurchaseRequisitionTrx|undefined} value
2937
+ * @return {!proto.CreatePurchaseRequisitionTrxResponse} returns this
2938
+ */
2939
+ proto.CreatePurchaseRequisitionTrxResponse.prototype.setPurchaseRequisitionTransaction = function(value) {
2940
+ return jspb.Message.setWrapperField(this, 1, value);
2941
+ };
2942
+
2943
+
2944
+ /**
2945
+ * Clears the message field making it undefined.
2946
+ * @return {!proto.CreatePurchaseRequisitionTrxResponse} returns this
2947
+ */
2948
+ proto.CreatePurchaseRequisitionTrxResponse.prototype.clearPurchaseRequisitionTransaction = function() {
2949
+ return this.setPurchaseRequisitionTransaction(undefined);
2950
+ };
2951
+
2952
+
2953
+ /**
2954
+ * Returns whether this field is set.
2955
+ * @return {boolean}
2956
+ */
2957
+ proto.CreatePurchaseRequisitionTrxResponse.prototype.hasPurchaseRequisitionTransaction = function() {
2958
+ return jspb.Message.getField(this, 1) != null;
2959
+ };
2960
+
2961
+
2962
+ /**
2963
+ * optional prisca.v1.global.meta.Meta meta = 2;
2964
+ * @return {?proto.prisca.v1.global.meta.Meta}
2965
+ */
2966
+ proto.CreatePurchaseRequisitionTrxResponse.prototype.getMeta = function() {
2967
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2968
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2969
+ };
2970
+
2971
+
2972
+ /**
2973
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2974
+ * @return {!proto.CreatePurchaseRequisitionTrxResponse} returns this
2975
+ */
2976
+ proto.CreatePurchaseRequisitionTrxResponse.prototype.setMeta = function(value) {
2977
+ return jspb.Message.setWrapperField(this, 2, value);
2978
+ };
2979
+
2980
+
2981
+ /**
2982
+ * Clears the message field making it undefined.
2983
+ * @return {!proto.CreatePurchaseRequisitionTrxResponse} returns this
2984
+ */
2985
+ proto.CreatePurchaseRequisitionTrxResponse.prototype.clearMeta = function() {
2986
+ return this.setMeta(undefined);
2987
+ };
2988
+
2989
+
2990
+ /**
2991
+ * Returns whether this field is set.
2992
+ * @return {boolean}
2993
+ */
2994
+ proto.CreatePurchaseRequisitionTrxResponse.prototype.hasMeta = function() {
2995
+ return jspb.Message.getField(this, 2) != null;
2996
+ };
2997
+
2998
+
2999
+
3000
+
3001
+
3002
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3003
+ /**
3004
+ * Creates an object representation of this proto.
3005
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3006
+ * Optional fields that are not set will be set to undefined.
3007
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3008
+ * For the list of reserved names please see:
3009
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3010
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3011
+ * JSPB instance for transitional soy proto support:
3012
+ * http://goto/soy-param-migration
3013
+ * @return {!Object}
3014
+ */
3015
+ proto.UpdatePurchaseRequisitionTrxResponse.prototype.toObject = function(opt_includeInstance) {
3016
+ return proto.UpdatePurchaseRequisitionTrxResponse.toObject(opt_includeInstance, this);
3017
+ };
3018
+
3019
+
3020
+ /**
3021
+ * Static version of the {@see toObject} method.
3022
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3023
+ * the JSPB instance for transitional soy proto support:
3024
+ * http://goto/soy-param-migration
3025
+ * @param {!proto.UpdatePurchaseRequisitionTrxResponse} msg The msg instance to transform.
3026
+ * @return {!Object}
3027
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3028
+ */
3029
+ proto.UpdatePurchaseRequisitionTrxResponse.toObject = function(includeInstance, msg) {
3030
+ var f, obj = {
3031
+ purchaseRequisitionTransaction: (f = msg.getPurchaseRequisitionTransaction()) && proto.PurchaseRequisitionTrx.toObject(includeInstance, f),
3032
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3033
+ };
3034
+
3035
+ if (includeInstance) {
3036
+ obj.$jspbMessageInstance = msg;
3037
+ }
3038
+ return obj;
3039
+ };
3040
+ }
3041
+
3042
+
3043
+ /**
3044
+ * Deserializes binary data (in protobuf wire format).
3045
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3046
+ * @return {!proto.UpdatePurchaseRequisitionTrxResponse}
3047
+ */
3048
+ proto.UpdatePurchaseRequisitionTrxResponse.deserializeBinary = function(bytes) {
3049
+ var reader = new jspb.BinaryReader(bytes);
3050
+ var msg = new proto.UpdatePurchaseRequisitionTrxResponse;
3051
+ return proto.UpdatePurchaseRequisitionTrxResponse.deserializeBinaryFromReader(msg, reader);
3052
+ };
3053
+
3054
+
3055
+ /**
3056
+ * Deserializes binary data (in protobuf wire format) from the
3057
+ * given reader into the given message object.
3058
+ * @param {!proto.UpdatePurchaseRequisitionTrxResponse} msg The message object to deserialize into.
3059
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3060
+ * @return {!proto.UpdatePurchaseRequisitionTrxResponse}
3061
+ */
3062
+ proto.UpdatePurchaseRequisitionTrxResponse.deserializeBinaryFromReader = function(msg, reader) {
3063
+ while (reader.nextField()) {
3064
+ if (reader.isEndGroup()) {
3065
+ break;
3066
+ }
3067
+ var field = reader.getFieldNumber();
3068
+ switch (field) {
3069
+ case 1:
3070
+ var value = new proto.PurchaseRequisitionTrx;
3071
+ reader.readMessage(value,proto.PurchaseRequisitionTrx.deserializeBinaryFromReader);
3072
+ msg.setPurchaseRequisitionTransaction(value);
3073
+ break;
3074
+ case 2:
3075
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
3076
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3077
+ msg.setMeta(value);
3078
+ break;
3079
+ default:
3080
+ reader.skipField();
3081
+ break;
3082
+ }
3083
+ }
3084
+ return msg;
3085
+ };
3086
+
3087
+
3088
+ /**
3089
+ * Serializes the message to binary data (in protobuf wire format).
3090
+ * @return {!Uint8Array}
3091
+ */
3092
+ proto.UpdatePurchaseRequisitionTrxResponse.prototype.serializeBinary = function() {
3093
+ var writer = new jspb.BinaryWriter();
3094
+ proto.UpdatePurchaseRequisitionTrxResponse.serializeBinaryToWriter(this, writer);
3095
+ return writer.getResultBuffer();
3096
+ };
3097
+
3098
+
3099
+ /**
3100
+ * Serializes the given message to binary data (in protobuf wire
3101
+ * format), writing to the given BinaryWriter.
3102
+ * @param {!proto.UpdatePurchaseRequisitionTrxResponse} message
3103
+ * @param {!jspb.BinaryWriter} writer
3104
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3105
+ */
3106
+ proto.UpdatePurchaseRequisitionTrxResponse.serializeBinaryToWriter = function(message, writer) {
3107
+ var f = undefined;
3108
+ f = message.getPurchaseRequisitionTransaction();
3109
+ if (f != null) {
3110
+ writer.writeMessage(
3111
+ 1,
3112
+ f,
3113
+ proto.PurchaseRequisitionTrx.serializeBinaryToWriter
3114
+ );
3115
+ }
3116
+ f = message.getMeta();
3117
+ if (f != null) {
3118
+ writer.writeMessage(
3119
+ 2,
3120
+ f,
3121
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3122
+ );
3123
+ }
3124
+ };
3125
+
3126
+
3127
+ /**
3128
+ * optional PurchaseRequisitionTrx purchase_requisition_transaction = 1;
3129
+ * @return {?proto.PurchaseRequisitionTrx}
3130
+ */
3131
+ proto.UpdatePurchaseRequisitionTrxResponse.prototype.getPurchaseRequisitionTransaction = function() {
3132
+ return /** @type{?proto.PurchaseRequisitionTrx} */ (
3133
+ jspb.Message.getWrapperField(this, proto.PurchaseRequisitionTrx, 1));
3134
+ };
3135
+
3136
+
3137
+ /**
3138
+ * @param {?proto.PurchaseRequisitionTrx|undefined} value
3139
+ * @return {!proto.UpdatePurchaseRequisitionTrxResponse} returns this
3140
+ */
3141
+ proto.UpdatePurchaseRequisitionTrxResponse.prototype.setPurchaseRequisitionTransaction = function(value) {
3142
+ return jspb.Message.setWrapperField(this, 1, value);
3143
+ };
3144
+
3145
+
3146
+ /**
3147
+ * Clears the message field making it undefined.
3148
+ * @return {!proto.UpdatePurchaseRequisitionTrxResponse} returns this
3149
+ */
3150
+ proto.UpdatePurchaseRequisitionTrxResponse.prototype.clearPurchaseRequisitionTransaction = function() {
3151
+ return this.setPurchaseRequisitionTransaction(undefined);
3152
+ };
3153
+
3154
+
3155
+ /**
3156
+ * Returns whether this field is set.
3157
+ * @return {boolean}
3158
+ */
3159
+ proto.UpdatePurchaseRequisitionTrxResponse.prototype.hasPurchaseRequisitionTransaction = function() {
3160
+ return jspb.Message.getField(this, 1) != null;
3161
+ };
3162
+
3163
+
3164
+ /**
3165
+ * optional prisca.v1.global.meta.Meta meta = 2;
3166
+ * @return {?proto.prisca.v1.global.meta.Meta}
3167
+ */
3168
+ proto.UpdatePurchaseRequisitionTrxResponse.prototype.getMeta = function() {
3169
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3170
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3171
+ };
3172
+
3173
+
3174
+ /**
3175
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3176
+ * @return {!proto.UpdatePurchaseRequisitionTrxResponse} returns this
3177
+ */
3178
+ proto.UpdatePurchaseRequisitionTrxResponse.prototype.setMeta = function(value) {
3179
+ return jspb.Message.setWrapperField(this, 2, value);
3180
+ };
3181
+
3182
+
3183
+ /**
3184
+ * Clears the message field making it undefined.
3185
+ * @return {!proto.UpdatePurchaseRequisitionTrxResponse} returns this
3186
+ */
3187
+ proto.UpdatePurchaseRequisitionTrxResponse.prototype.clearMeta = function() {
3188
+ return this.setMeta(undefined);
3189
+ };
3190
+
3191
+
3192
+ /**
3193
+ * Returns whether this field is set.
3194
+ * @return {boolean}
3195
+ */
3196
+ proto.UpdatePurchaseRequisitionTrxResponse.prototype.hasMeta = function() {
3197
+ return jspb.Message.getField(this, 2) != null;
3198
+ };
3199
+
3200
+
3201
+
3202
+
3203
+
3204
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3205
+ /**
3206
+ * Creates an object representation of this proto.
3207
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3208
+ * Optional fields that are not set will be set to undefined.
3209
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3210
+ * For the list of reserved names please see:
3211
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3212
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3213
+ * JSPB instance for transitional soy proto support:
3214
+ * http://goto/soy-param-migration
3215
+ * @return {!Object}
3216
+ */
3217
+ proto.GetPurchaseRequisitionTrxByIdResponse.prototype.toObject = function(opt_includeInstance) {
3218
+ return proto.GetPurchaseRequisitionTrxByIdResponse.toObject(opt_includeInstance, this);
3219
+ };
3220
+
3221
+
3222
+ /**
3223
+ * Static version of the {@see toObject} method.
3224
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3225
+ * the JSPB instance for transitional soy proto support:
3226
+ * http://goto/soy-param-migration
3227
+ * @param {!proto.GetPurchaseRequisitionTrxByIdResponse} msg The msg instance to transform.
3228
+ * @return {!Object}
3229
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3230
+ */
3231
+ proto.GetPurchaseRequisitionTrxByIdResponse.toObject = function(includeInstance, msg) {
3232
+ var f, obj = {
3233
+ purchaseRequisitionTransaction: (f = msg.getPurchaseRequisitionTransaction()) && proto.PurchaseRequisitionTrx.toObject(includeInstance, f),
3234
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3235
+ };
3236
+
3237
+ if (includeInstance) {
3238
+ obj.$jspbMessageInstance = msg;
3239
+ }
3240
+ return obj;
3241
+ };
3242
+ }
3243
+
3244
+
3245
+ /**
3246
+ * Deserializes binary data (in protobuf wire format).
3247
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3248
+ * @return {!proto.GetPurchaseRequisitionTrxByIdResponse}
3249
+ */
3250
+ proto.GetPurchaseRequisitionTrxByIdResponse.deserializeBinary = function(bytes) {
3251
+ var reader = new jspb.BinaryReader(bytes);
3252
+ var msg = new proto.GetPurchaseRequisitionTrxByIdResponse;
3253
+ return proto.GetPurchaseRequisitionTrxByIdResponse.deserializeBinaryFromReader(msg, reader);
3254
+ };
3255
+
3256
+
3257
+ /**
3258
+ * Deserializes binary data (in protobuf wire format) from the
3259
+ * given reader into the given message object.
3260
+ * @param {!proto.GetPurchaseRequisitionTrxByIdResponse} msg The message object to deserialize into.
3261
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3262
+ * @return {!proto.GetPurchaseRequisitionTrxByIdResponse}
3263
+ */
3264
+ proto.GetPurchaseRequisitionTrxByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
3265
+ while (reader.nextField()) {
3266
+ if (reader.isEndGroup()) {
3267
+ break;
3268
+ }
3269
+ var field = reader.getFieldNumber();
3270
+ switch (field) {
3271
+ case 1:
3272
+ var value = new proto.PurchaseRequisitionTrx;
3273
+ reader.readMessage(value,proto.PurchaseRequisitionTrx.deserializeBinaryFromReader);
3274
+ msg.setPurchaseRequisitionTransaction(value);
3275
+ break;
3276
+ case 2:
3277
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
3278
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3279
+ msg.setMeta(value);
3280
+ break;
3281
+ default:
3282
+ reader.skipField();
3283
+ break;
3284
+ }
3285
+ }
3286
+ return msg;
3287
+ };
3288
+
3289
+
3290
+ /**
3291
+ * Serializes the message to binary data (in protobuf wire format).
3292
+ * @return {!Uint8Array}
3293
+ */
3294
+ proto.GetPurchaseRequisitionTrxByIdResponse.prototype.serializeBinary = function() {
3295
+ var writer = new jspb.BinaryWriter();
3296
+ proto.GetPurchaseRequisitionTrxByIdResponse.serializeBinaryToWriter(this, writer);
3297
+ return writer.getResultBuffer();
3298
+ };
3299
+
3300
+
3301
+ /**
3302
+ * Serializes the given message to binary data (in protobuf wire
3303
+ * format), writing to the given BinaryWriter.
3304
+ * @param {!proto.GetPurchaseRequisitionTrxByIdResponse} message
3305
+ * @param {!jspb.BinaryWriter} writer
3306
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3307
+ */
3308
+ proto.GetPurchaseRequisitionTrxByIdResponse.serializeBinaryToWriter = function(message, writer) {
3309
+ var f = undefined;
3310
+ f = message.getPurchaseRequisitionTransaction();
3311
+ if (f != null) {
3312
+ writer.writeMessage(
3313
+ 1,
3314
+ f,
3315
+ proto.PurchaseRequisitionTrx.serializeBinaryToWriter
3316
+ );
3317
+ }
3318
+ f = message.getMeta();
3319
+ if (f != null) {
3320
+ writer.writeMessage(
3321
+ 2,
3322
+ f,
3323
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3324
+ );
3325
+ }
3326
+ };
3327
+
3328
+
3329
+ /**
3330
+ * optional PurchaseRequisitionTrx purchase_requisition_transaction = 1;
3331
+ * @return {?proto.PurchaseRequisitionTrx}
3332
+ */
3333
+ proto.GetPurchaseRequisitionTrxByIdResponse.prototype.getPurchaseRequisitionTransaction = function() {
3334
+ return /** @type{?proto.PurchaseRequisitionTrx} */ (
3335
+ jspb.Message.getWrapperField(this, proto.PurchaseRequisitionTrx, 1));
3336
+ };
3337
+
3338
+
3339
+ /**
3340
+ * @param {?proto.PurchaseRequisitionTrx|undefined} value
3341
+ * @return {!proto.GetPurchaseRequisitionTrxByIdResponse} returns this
3342
+ */
3343
+ proto.GetPurchaseRequisitionTrxByIdResponse.prototype.setPurchaseRequisitionTransaction = function(value) {
3344
+ return jspb.Message.setWrapperField(this, 1, value);
3345
+ };
3346
+
3347
+
3348
+ /**
3349
+ * Clears the message field making it undefined.
3350
+ * @return {!proto.GetPurchaseRequisitionTrxByIdResponse} returns this
3351
+ */
3352
+ proto.GetPurchaseRequisitionTrxByIdResponse.prototype.clearPurchaseRequisitionTransaction = function() {
3353
+ return this.setPurchaseRequisitionTransaction(undefined);
3354
+ };
3355
+
3356
+
3357
+ /**
3358
+ * Returns whether this field is set.
3359
+ * @return {boolean}
3360
+ */
3361
+ proto.GetPurchaseRequisitionTrxByIdResponse.prototype.hasPurchaseRequisitionTransaction = function() {
3362
+ return jspb.Message.getField(this, 1) != null;
3363
+ };
3364
+
3365
+
3366
+ /**
3367
+ * optional prisca.v1.global.meta.Meta meta = 2;
3368
+ * @return {?proto.prisca.v1.global.meta.Meta}
3369
+ */
3370
+ proto.GetPurchaseRequisitionTrxByIdResponse.prototype.getMeta = function() {
3371
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3372
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3373
+ };
3374
+
3375
+
3376
+ /**
3377
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3378
+ * @return {!proto.GetPurchaseRequisitionTrxByIdResponse} returns this
3379
+ */
3380
+ proto.GetPurchaseRequisitionTrxByIdResponse.prototype.setMeta = function(value) {
3381
+ return jspb.Message.setWrapperField(this, 2, value);
3382
+ };
3383
+
3384
+
3385
+ /**
3386
+ * Clears the message field making it undefined.
3387
+ * @return {!proto.GetPurchaseRequisitionTrxByIdResponse} returns this
3388
+ */
3389
+ proto.GetPurchaseRequisitionTrxByIdResponse.prototype.clearMeta = function() {
3390
+ return this.setMeta(undefined);
3391
+ };
3392
+
3393
+
3394
+ /**
3395
+ * Returns whether this field is set.
3396
+ * @return {boolean}
3397
+ */
3398
+ proto.GetPurchaseRequisitionTrxByIdResponse.prototype.hasMeta = function() {
3399
+ return jspb.Message.getField(this, 2) != null;
3400
+ };
3401
+
3402
+
3403
+
3404
+ /**
3405
+ * List of repeated fields within this message type.
3406
+ * @private {!Array<number>}
3407
+ * @const
3408
+ */
3409
+ proto.GetPurchaseRequisitionTrxListResponse.repeatedFields_ = [1];
3410
+
3411
+
3412
+
3413
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3414
+ /**
3415
+ * Creates an object representation of this proto.
3416
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3417
+ * Optional fields that are not set will be set to undefined.
3418
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3419
+ * For the list of reserved names please see:
3420
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3421
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3422
+ * JSPB instance for transitional soy proto support:
3423
+ * http://goto/soy-param-migration
3424
+ * @return {!Object}
3425
+ */
3426
+ proto.GetPurchaseRequisitionTrxListResponse.prototype.toObject = function(opt_includeInstance) {
3427
+ return proto.GetPurchaseRequisitionTrxListResponse.toObject(opt_includeInstance, this);
3428
+ };
3429
+
3430
+
3431
+ /**
3432
+ * Static version of the {@see toObject} method.
3433
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3434
+ * the JSPB instance for transitional soy proto support:
3435
+ * http://goto/soy-param-migration
3436
+ * @param {!proto.GetPurchaseRequisitionTrxListResponse} msg The msg instance to transform.
3437
+ * @return {!Object}
3438
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3439
+ */
3440
+ proto.GetPurchaseRequisitionTrxListResponse.toObject = function(includeInstance, msg) {
3441
+ var f, obj = {
3442
+ purchaseRequisitionTransactionList: jspb.Message.toObjectList(msg.getPurchaseRequisitionTransactionList(),
3443
+ proto.PurchaseRequisitionTrx.toObject, includeInstance),
3444
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3445
+ };
3446
+
3447
+ if (includeInstance) {
3448
+ obj.$jspbMessageInstance = msg;
3449
+ }
3450
+ return obj;
3451
+ };
3452
+ }
3453
+
3454
+
3455
+ /**
3456
+ * Deserializes binary data (in protobuf wire format).
3457
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3458
+ * @return {!proto.GetPurchaseRequisitionTrxListResponse}
3459
+ */
3460
+ proto.GetPurchaseRequisitionTrxListResponse.deserializeBinary = function(bytes) {
3461
+ var reader = new jspb.BinaryReader(bytes);
3462
+ var msg = new proto.GetPurchaseRequisitionTrxListResponse;
3463
+ return proto.GetPurchaseRequisitionTrxListResponse.deserializeBinaryFromReader(msg, reader);
3464
+ };
3465
+
3466
+
3467
+ /**
3468
+ * Deserializes binary data (in protobuf wire format) from the
3469
+ * given reader into the given message object.
3470
+ * @param {!proto.GetPurchaseRequisitionTrxListResponse} msg The message object to deserialize into.
3471
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3472
+ * @return {!proto.GetPurchaseRequisitionTrxListResponse}
3473
+ */
3474
+ proto.GetPurchaseRequisitionTrxListResponse.deserializeBinaryFromReader = function(msg, reader) {
3475
+ while (reader.nextField()) {
3476
+ if (reader.isEndGroup()) {
3477
+ break;
3478
+ }
3479
+ var field = reader.getFieldNumber();
3480
+ switch (field) {
3481
+ case 1:
3482
+ var value = new proto.PurchaseRequisitionTrx;
3483
+ reader.readMessage(value,proto.PurchaseRequisitionTrx.deserializeBinaryFromReader);
3484
+ msg.addPurchaseRequisitionTransaction(value);
3485
+ break;
3486
+ case 2:
3487
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
3488
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3489
+ msg.setMeta(value);
3490
+ break;
3491
+ default:
3492
+ reader.skipField();
3493
+ break;
3494
+ }
3495
+ }
3496
+ return msg;
3497
+ };
3498
+
3499
+
3500
+ /**
3501
+ * Serializes the message to binary data (in protobuf wire format).
3502
+ * @return {!Uint8Array}
3503
+ */
3504
+ proto.GetPurchaseRequisitionTrxListResponse.prototype.serializeBinary = function() {
3505
+ var writer = new jspb.BinaryWriter();
3506
+ proto.GetPurchaseRequisitionTrxListResponse.serializeBinaryToWriter(this, writer);
3507
+ return writer.getResultBuffer();
3508
+ };
3509
+
3510
+
3511
+ /**
3512
+ * Serializes the given message to binary data (in protobuf wire
3513
+ * format), writing to the given BinaryWriter.
3514
+ * @param {!proto.GetPurchaseRequisitionTrxListResponse} message
3515
+ * @param {!jspb.BinaryWriter} writer
3516
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3517
+ */
3518
+ proto.GetPurchaseRequisitionTrxListResponse.serializeBinaryToWriter = function(message, writer) {
3519
+ var f = undefined;
3520
+ f = message.getPurchaseRequisitionTransactionList();
3521
+ if (f.length > 0) {
3522
+ writer.writeRepeatedMessage(
3523
+ 1,
3524
+ f,
3525
+ proto.PurchaseRequisitionTrx.serializeBinaryToWriter
3526
+ );
3527
+ }
3528
+ f = message.getMeta();
3529
+ if (f != null) {
3530
+ writer.writeMessage(
3531
+ 2,
3532
+ f,
3533
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3534
+ );
3535
+ }
3536
+ };
3537
+
3538
+
3539
+ /**
3540
+ * repeated PurchaseRequisitionTrx purchase_requisition_transaction = 1;
3541
+ * @return {!Array<!proto.PurchaseRequisitionTrx>}
3542
+ */
3543
+ proto.GetPurchaseRequisitionTrxListResponse.prototype.getPurchaseRequisitionTransactionList = function() {
3544
+ return /** @type{!Array<!proto.PurchaseRequisitionTrx>} */ (
3545
+ jspb.Message.getRepeatedWrapperField(this, proto.PurchaseRequisitionTrx, 1));
3546
+ };
3547
+
3548
+
3549
+ /**
3550
+ * @param {!Array<!proto.PurchaseRequisitionTrx>} value
3551
+ * @return {!proto.GetPurchaseRequisitionTrxListResponse} returns this
3552
+ */
3553
+ proto.GetPurchaseRequisitionTrxListResponse.prototype.setPurchaseRequisitionTransactionList = function(value) {
3554
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
3555
+ };
3556
+
3557
+
3558
+ /**
3559
+ * @param {!proto.PurchaseRequisitionTrx=} opt_value
3560
+ * @param {number=} opt_index
3561
+ * @return {!proto.PurchaseRequisitionTrx}
3562
+ */
3563
+ proto.GetPurchaseRequisitionTrxListResponse.prototype.addPurchaseRequisitionTransaction = function(opt_value, opt_index) {
3564
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.PurchaseRequisitionTrx, opt_index);
3565
+ };
3566
+
3567
+
3568
+ /**
3569
+ * Clears the list making it empty but non-null.
3570
+ * @return {!proto.GetPurchaseRequisitionTrxListResponse} returns this
3571
+ */
3572
+ proto.GetPurchaseRequisitionTrxListResponse.prototype.clearPurchaseRequisitionTransactionList = function() {
3573
+ return this.setPurchaseRequisitionTransactionList([]);
3574
+ };
3575
+
3576
+
3577
+ /**
3578
+ * optional prisca.v1.global.meta.Meta meta = 2;
3579
+ * @return {?proto.prisca.v1.global.meta.Meta}
3580
+ */
3581
+ proto.GetPurchaseRequisitionTrxListResponse.prototype.getMeta = function() {
3582
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3583
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3584
+ };
3585
+
3586
+
3587
+ /**
3588
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3589
+ * @return {!proto.GetPurchaseRequisitionTrxListResponse} returns this
3590
+ */
3591
+ proto.GetPurchaseRequisitionTrxListResponse.prototype.setMeta = function(value) {
3592
+ return jspb.Message.setWrapperField(this, 2, value);
3593
+ };
3594
+
3595
+
3596
+ /**
3597
+ * Clears the message field making it undefined.
3598
+ * @return {!proto.GetPurchaseRequisitionTrxListResponse} returns this
3599
+ */
3600
+ proto.GetPurchaseRequisitionTrxListResponse.prototype.clearMeta = function() {
3601
+ return this.setMeta(undefined);
3602
+ };
3603
+
3604
+
3605
+ /**
3606
+ * Returns whether this field is set.
3607
+ * @return {boolean}
3608
+ */
3609
+ proto.GetPurchaseRequisitionTrxListResponse.prototype.hasMeta = function() {
3610
+ return jspb.Message.getField(this, 2) != null;
3611
+ };
3612
+
3613
+
3614
+
3615
+ /**
3616
+ * List of repeated fields within this message type.
3617
+ * @private {!Array<number>}
3618
+ * @const
3619
+ */
3620
+ proto.GetPurchaseRequisitionTrxDetailByIdResponse.repeatedFields_ = [3];
3621
+
3622
+
3623
+
3624
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3625
+ /**
3626
+ * Creates an object representation of this proto.
3627
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3628
+ * Optional fields that are not set will be set to undefined.
3629
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3630
+ * For the list of reserved names please see:
3631
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3632
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3633
+ * JSPB instance for transitional soy proto support:
3634
+ * http://goto/soy-param-migration
3635
+ * @return {!Object}
3636
+ */
3637
+ proto.GetPurchaseRequisitionTrxDetailByIdResponse.prototype.toObject = function(opt_includeInstance) {
3638
+ return proto.GetPurchaseRequisitionTrxDetailByIdResponse.toObject(opt_includeInstance, this);
3639
+ };
3640
+
3641
+
3642
+ /**
3643
+ * Static version of the {@see toObject} method.
3644
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3645
+ * the JSPB instance for transitional soy proto support:
3646
+ * http://goto/soy-param-migration
3647
+ * @param {!proto.GetPurchaseRequisitionTrxDetailByIdResponse} msg The msg instance to transform.
3648
+ * @return {!Object}
3649
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3650
+ */
3651
+ proto.GetPurchaseRequisitionTrxDetailByIdResponse.toObject = function(includeInstance, msg) {
3652
+ var f, obj = {
3653
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
3654
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
3655
+ transactionBuilderFieldsList: jspb.Message.toObjectList(msg.getTransactionBuilderFieldsList(),
3656
+ prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFields.toObject, includeInstance)
3657
+ };
3658
+
3659
+ if (includeInstance) {
3660
+ obj.$jspbMessageInstance = msg;
3661
+ }
3662
+ return obj;
3663
+ };
3664
+ }
3665
+
3666
+
3667
+ /**
3668
+ * Deserializes binary data (in protobuf wire format).
3669
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3670
+ * @return {!proto.GetPurchaseRequisitionTrxDetailByIdResponse}
3671
+ */
3672
+ proto.GetPurchaseRequisitionTrxDetailByIdResponse.deserializeBinary = function(bytes) {
3673
+ var reader = new jspb.BinaryReader(bytes);
3674
+ var msg = new proto.GetPurchaseRequisitionTrxDetailByIdResponse;
3675
+ return proto.GetPurchaseRequisitionTrxDetailByIdResponse.deserializeBinaryFromReader(msg, reader);
3676
+ };
3677
+
3678
+
3679
+ /**
3680
+ * Deserializes binary data (in protobuf wire format) from the
3681
+ * given reader into the given message object.
3682
+ * @param {!proto.GetPurchaseRequisitionTrxDetailByIdResponse} msg The message object to deserialize into.
3683
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3684
+ * @return {!proto.GetPurchaseRequisitionTrxDetailByIdResponse}
3685
+ */
3686
+ proto.GetPurchaseRequisitionTrxDetailByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
3687
+ while (reader.nextField()) {
3688
+ if (reader.isEndGroup()) {
3689
+ break;
3690
+ }
3691
+ var field = reader.getFieldNumber();
3692
+ switch (field) {
3693
+ case 1:
3694
+ var value = /** @type {number} */ (reader.readInt64());
3695
+ msg.setId(value);
3696
+ break;
3697
+ case 2:
3698
+ var value = /** @type {string} */ (reader.readString());
3699
+ msg.setName(value);
3700
+ break;
3701
+ case 3:
3702
+ var value = new prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFields;
3703
+ reader.readMessage(value,prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFields.deserializeBinaryFromReader);
3704
+ msg.addTransactionBuilderFields(value);
3705
+ break;
3706
+ default:
3707
+ reader.skipField();
3708
+ break;
3709
+ }
3710
+ }
3711
+ return msg;
3712
+ };
3713
+
3714
+
3715
+ /**
3716
+ * Serializes the message to binary data (in protobuf wire format).
3717
+ * @return {!Uint8Array}
3718
+ */
3719
+ proto.GetPurchaseRequisitionTrxDetailByIdResponse.prototype.serializeBinary = function() {
3720
+ var writer = new jspb.BinaryWriter();
3721
+ proto.GetPurchaseRequisitionTrxDetailByIdResponse.serializeBinaryToWriter(this, writer);
3722
+ return writer.getResultBuffer();
3723
+ };
3724
+
3725
+
3726
+ /**
3727
+ * Serializes the given message to binary data (in protobuf wire
3728
+ * format), writing to the given BinaryWriter.
3729
+ * @param {!proto.GetPurchaseRequisitionTrxDetailByIdResponse} message
3730
+ * @param {!jspb.BinaryWriter} writer
3731
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3732
+ */
3733
+ proto.GetPurchaseRequisitionTrxDetailByIdResponse.serializeBinaryToWriter = function(message, writer) {
3734
+ var f = undefined;
3735
+ f = message.getId();
3736
+ if (f !== 0) {
3737
+ writer.writeInt64(
3738
+ 1,
3739
+ f
3740
+ );
3741
+ }
3742
+ f = message.getName();
3743
+ if (f.length > 0) {
3744
+ writer.writeString(
3745
+ 2,
3746
+ f
3747
+ );
3748
+ }
3749
+ f = message.getTransactionBuilderFieldsList();
3750
+ if (f.length > 0) {
3751
+ writer.writeRepeatedMessage(
3752
+ 3,
3753
+ f,
3754
+ prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFields.serializeBinaryToWriter
3755
+ );
3756
+ }
3757
+ };
3758
+
3759
+
3760
+ /**
3761
+ * optional int64 id = 1;
3762
+ * @return {number}
3763
+ */
3764
+ proto.GetPurchaseRequisitionTrxDetailByIdResponse.prototype.getId = function() {
3765
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3766
+ };
3767
+
3768
+
3769
+ /**
3770
+ * @param {number} value
3771
+ * @return {!proto.GetPurchaseRequisitionTrxDetailByIdResponse} returns this
3772
+ */
3773
+ proto.GetPurchaseRequisitionTrxDetailByIdResponse.prototype.setId = function(value) {
3774
+ return jspb.Message.setProto3IntField(this, 1, value);
3775
+ };
3776
+
3777
+
3778
+ /**
3779
+ * optional string name = 2;
3780
+ * @return {string}
3781
+ */
3782
+ proto.GetPurchaseRequisitionTrxDetailByIdResponse.prototype.getName = function() {
3783
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3784
+ };
3785
+
3786
+
3787
+ /**
3788
+ * @param {string} value
3789
+ * @return {!proto.GetPurchaseRequisitionTrxDetailByIdResponse} returns this
3790
+ */
3791
+ proto.GetPurchaseRequisitionTrxDetailByIdResponse.prototype.setName = function(value) {
3792
+ return jspb.Message.setProto3StringField(this, 2, value);
3793
+ };
3794
+
3795
+
3796
+ /**
3797
+ * repeated prisca.v1.core.transaction_builder.TransactionBuilderFields transaction_builder_fields = 3;
3798
+ * @return {!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderFields>}
3799
+ */
3800
+ proto.GetPurchaseRequisitionTrxDetailByIdResponse.prototype.getTransactionBuilderFieldsList = function() {
3801
+ return /** @type{!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderFields>} */ (
3802
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFields, 3));
3803
+ };
3804
+
3805
+
3806
+ /**
3807
+ * @param {!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderFields>} value
3808
+ * @return {!proto.GetPurchaseRequisitionTrxDetailByIdResponse} returns this
3809
+ */
3810
+ proto.GetPurchaseRequisitionTrxDetailByIdResponse.prototype.setTransactionBuilderFieldsList = function(value) {
3811
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
3812
+ };
3813
+
3814
+
3815
+ /**
3816
+ * @param {!proto.prisca.v1.core.transaction_builder.TransactionBuilderFields=} opt_value
3817
+ * @param {number=} opt_index
3818
+ * @return {!proto.prisca.v1.core.transaction_builder.TransactionBuilderFields}
3819
+ */
3820
+ proto.GetPurchaseRequisitionTrxDetailByIdResponse.prototype.addTransactionBuilderFields = function(opt_value, opt_index) {
3821
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.prisca.v1.core.transaction_builder.TransactionBuilderFields, opt_index);
3822
+ };
3823
+
3824
+
3825
+ /**
3826
+ * Clears the list making it empty but non-null.
3827
+ * @return {!proto.GetPurchaseRequisitionTrxDetailByIdResponse} returns this
3828
+ */
3829
+ proto.GetPurchaseRequisitionTrxDetailByIdResponse.prototype.clearTransactionBuilderFieldsList = function() {
3830
+ return this.setTransactionBuilderFieldsList([]);
3831
+ };
3832
+
3833
+
3834
+
3835
+ /**
3836
+ * List of repeated fields within this message type.
3837
+ * @private {!Array<number>}
3838
+ * @const
3839
+ */
3840
+ proto.GetPurchaseRequisitionTrxDetailListResponse.repeatedFields_ = [1];
3841
+
3842
+
3843
+
3844
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3845
+ /**
3846
+ * Creates an object representation of this proto.
3847
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3848
+ * Optional fields that are not set will be set to undefined.
3849
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3850
+ * For the list of reserved names please see:
3851
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3852
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3853
+ * JSPB instance for transitional soy proto support:
3854
+ * http://goto/soy-param-migration
3855
+ * @return {!Object}
3856
+ */
3857
+ proto.GetPurchaseRequisitionTrxDetailListResponse.prototype.toObject = function(opt_includeInstance) {
3858
+ return proto.GetPurchaseRequisitionTrxDetailListResponse.toObject(opt_includeInstance, this);
3859
+ };
3860
+
3861
+
3862
+ /**
3863
+ * Static version of the {@see toObject} method.
3864
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3865
+ * the JSPB instance for transitional soy proto support:
3866
+ * http://goto/soy-param-migration
3867
+ * @param {!proto.GetPurchaseRequisitionTrxDetailListResponse} msg The msg instance to transform.
3868
+ * @return {!Object}
3869
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3870
+ */
3871
+ proto.GetPurchaseRequisitionTrxDetailListResponse.toObject = function(includeInstance, msg) {
3872
+ var f, obj = {
3873
+ dataList: jspb.Message.toObjectList(msg.getDataList(),
3874
+ prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderWithDetails.toObject, includeInstance),
3875
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3876
+ };
3877
+
3878
+ if (includeInstance) {
3879
+ obj.$jspbMessageInstance = msg;
3880
+ }
3881
+ return obj;
3882
+ };
3883
+ }
3884
+
3885
+
3886
+ /**
3887
+ * Deserializes binary data (in protobuf wire format).
3888
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3889
+ * @return {!proto.GetPurchaseRequisitionTrxDetailListResponse}
3890
+ */
3891
+ proto.GetPurchaseRequisitionTrxDetailListResponse.deserializeBinary = function(bytes) {
3892
+ var reader = new jspb.BinaryReader(bytes);
3893
+ var msg = new proto.GetPurchaseRequisitionTrxDetailListResponse;
3894
+ return proto.GetPurchaseRequisitionTrxDetailListResponse.deserializeBinaryFromReader(msg, reader);
3895
+ };
3896
+
3897
+
3898
+ /**
3899
+ * Deserializes binary data (in protobuf wire format) from the
3900
+ * given reader into the given message object.
3901
+ * @param {!proto.GetPurchaseRequisitionTrxDetailListResponse} msg The message object to deserialize into.
3902
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3903
+ * @return {!proto.GetPurchaseRequisitionTrxDetailListResponse}
3904
+ */
3905
+ proto.GetPurchaseRequisitionTrxDetailListResponse.deserializeBinaryFromReader = function(msg, reader) {
3906
+ while (reader.nextField()) {
3907
+ if (reader.isEndGroup()) {
3908
+ break;
3909
+ }
3910
+ var field = reader.getFieldNumber();
3911
+ switch (field) {
3912
+ case 1:
3913
+ var value = new prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderWithDetails;
3914
+ reader.readMessage(value,prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderWithDetails.deserializeBinaryFromReader);
3915
+ msg.addData(value);
3916
+ break;
3917
+ case 2:
3918
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
3919
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3920
+ msg.setMeta(value);
3921
+ break;
3922
+ default:
3923
+ reader.skipField();
3924
+ break;
3925
+ }
3926
+ }
3927
+ return msg;
3928
+ };
3929
+
3930
+
3931
+ /**
3932
+ * Serializes the message to binary data (in protobuf wire format).
3933
+ * @return {!Uint8Array}
3934
+ */
3935
+ proto.GetPurchaseRequisitionTrxDetailListResponse.prototype.serializeBinary = function() {
3936
+ var writer = new jspb.BinaryWriter();
3937
+ proto.GetPurchaseRequisitionTrxDetailListResponse.serializeBinaryToWriter(this, writer);
3938
+ return writer.getResultBuffer();
3939
+ };
3940
+
3941
+
3942
+ /**
3943
+ * Serializes the given message to binary data (in protobuf wire
3944
+ * format), writing to the given BinaryWriter.
3945
+ * @param {!proto.GetPurchaseRequisitionTrxDetailListResponse} message
3946
+ * @param {!jspb.BinaryWriter} writer
3947
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3948
+ */
3949
+ proto.GetPurchaseRequisitionTrxDetailListResponse.serializeBinaryToWriter = function(message, writer) {
3950
+ var f = undefined;
3951
+ f = message.getDataList();
3952
+ if (f.length > 0) {
3953
+ writer.writeRepeatedMessage(
3954
+ 1,
3955
+ f,
3956
+ prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderWithDetails.serializeBinaryToWriter
3957
+ );
3958
+ }
3959
+ f = message.getMeta();
3960
+ if (f != null) {
3961
+ writer.writeMessage(
3962
+ 2,
3963
+ f,
3964
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3965
+ );
3966
+ }
3967
+ };
3968
+
3969
+
3970
+ /**
3971
+ * repeated prisca.v1.core.transaction_builder.TransactionBuilderWithDetails data = 1;
3972
+ * @return {!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderWithDetails>}
3973
+ */
3974
+ proto.GetPurchaseRequisitionTrxDetailListResponse.prototype.getDataList = function() {
3975
+ return /** @type{!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderWithDetails>} */ (
3976
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderWithDetails, 1));
3977
+ };
3978
+
3979
+
3980
+ /**
3981
+ * @param {!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderWithDetails>} value
3982
+ * @return {!proto.GetPurchaseRequisitionTrxDetailListResponse} returns this
3983
+ */
3984
+ proto.GetPurchaseRequisitionTrxDetailListResponse.prototype.setDataList = function(value) {
3985
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
3986
+ };
3987
+
3988
+
3989
+ /**
3990
+ * @param {!proto.prisca.v1.core.transaction_builder.TransactionBuilderWithDetails=} opt_value
3991
+ * @param {number=} opt_index
3992
+ * @return {!proto.prisca.v1.core.transaction_builder.TransactionBuilderWithDetails}
3993
+ */
3994
+ proto.GetPurchaseRequisitionTrxDetailListResponse.prototype.addData = function(opt_value, opt_index) {
3995
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.prisca.v1.core.transaction_builder.TransactionBuilderWithDetails, opt_index);
3996
+ };
3997
+
3998
+
3999
+ /**
4000
+ * Clears the list making it empty but non-null.
4001
+ * @return {!proto.GetPurchaseRequisitionTrxDetailListResponse} returns this
4002
+ */
4003
+ proto.GetPurchaseRequisitionTrxDetailListResponse.prototype.clearDataList = function() {
4004
+ return this.setDataList([]);
4005
+ };
4006
+
4007
+
4008
+ /**
4009
+ * optional prisca.v1.global.meta.Meta meta = 2;
4010
+ * @return {?proto.prisca.v1.global.meta.Meta}
4011
+ */
4012
+ proto.GetPurchaseRequisitionTrxDetailListResponse.prototype.getMeta = function() {
4013
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
4014
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
4015
+ };
4016
+
4017
+
4018
+ /**
4019
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
4020
+ * @return {!proto.GetPurchaseRequisitionTrxDetailListResponse} returns this
4021
+ */
4022
+ proto.GetPurchaseRequisitionTrxDetailListResponse.prototype.setMeta = function(value) {
4023
+ return jspb.Message.setWrapperField(this, 2, value);
4024
+ };
4025
+
4026
+
4027
+ /**
4028
+ * Clears the message field making it undefined.
4029
+ * @return {!proto.GetPurchaseRequisitionTrxDetailListResponse} returns this
4030
+ */
4031
+ proto.GetPurchaseRequisitionTrxDetailListResponse.prototype.clearMeta = function() {
4032
+ return this.setMeta(undefined);
4033
+ };
4034
+
4035
+
4036
+ /**
4037
+ * Returns whether this field is set.
4038
+ * @return {boolean}
4039
+ */
4040
+ proto.GetPurchaseRequisitionTrxDetailListResponse.prototype.hasMeta = function() {
4041
+ return jspb.Message.getField(this, 2) != null;
4042
+ };
4043
+
4044
+
4045
+
4046
+ /**
4047
+ * List of repeated fields within this message type.
4048
+ * @private {!Array<number>}
4049
+ * @const
4050
+ */
4051
+ proto.GetPurchaseRequisitionTrxDetailListTableResponse.repeatedFields_ = [1];
4052
+
4053
+
4054
+
4055
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4056
+ /**
4057
+ * Creates an object representation of this proto.
4058
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4059
+ * Optional fields that are not set will be set to undefined.
4060
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4061
+ * For the list of reserved names please see:
4062
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4063
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4064
+ * JSPB instance for transitional soy proto support:
4065
+ * http://goto/soy-param-migration
4066
+ * @return {!Object}
4067
+ */
4068
+ proto.GetPurchaseRequisitionTrxDetailListTableResponse.prototype.toObject = function(opt_includeInstance) {
4069
+ return proto.GetPurchaseRequisitionTrxDetailListTableResponse.toObject(opt_includeInstance, this);
4070
+ };
4071
+
4072
+
4073
+ /**
4074
+ * Static version of the {@see toObject} method.
4075
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4076
+ * the JSPB instance for transitional soy proto support:
4077
+ * http://goto/soy-param-migration
4078
+ * @param {!proto.GetPurchaseRequisitionTrxDetailListTableResponse} msg The msg instance to transform.
4079
+ * @return {!Object}
4080
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4081
+ */
4082
+ proto.GetPurchaseRequisitionTrxDetailListTableResponse.toObject = function(includeInstance, msg) {
4083
+ var f, obj = {
4084
+ dataList: jspb.Message.toObjectList(msg.getDataList(),
4085
+ prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderWithDetailTableRes.toObject, includeInstance),
4086
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
4087
+ };
4088
+
4089
+ if (includeInstance) {
4090
+ obj.$jspbMessageInstance = msg;
4091
+ }
4092
+ return obj;
4093
+ };
4094
+ }
4095
+
4096
+
4097
+ /**
4098
+ * Deserializes binary data (in protobuf wire format).
4099
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4100
+ * @return {!proto.GetPurchaseRequisitionTrxDetailListTableResponse}
4101
+ */
4102
+ proto.GetPurchaseRequisitionTrxDetailListTableResponse.deserializeBinary = function(bytes) {
4103
+ var reader = new jspb.BinaryReader(bytes);
4104
+ var msg = new proto.GetPurchaseRequisitionTrxDetailListTableResponse;
4105
+ return proto.GetPurchaseRequisitionTrxDetailListTableResponse.deserializeBinaryFromReader(msg, reader);
4106
+ };
4107
+
4108
+
4109
+ /**
4110
+ * Deserializes binary data (in protobuf wire format) from the
4111
+ * given reader into the given message object.
4112
+ * @param {!proto.GetPurchaseRequisitionTrxDetailListTableResponse} msg The message object to deserialize into.
4113
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4114
+ * @return {!proto.GetPurchaseRequisitionTrxDetailListTableResponse}
4115
+ */
4116
+ proto.GetPurchaseRequisitionTrxDetailListTableResponse.deserializeBinaryFromReader = function(msg, reader) {
4117
+ while (reader.nextField()) {
4118
+ if (reader.isEndGroup()) {
4119
+ break;
4120
+ }
4121
+ var field = reader.getFieldNumber();
4122
+ switch (field) {
4123
+ case 1:
4124
+ var value = new prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderWithDetailTableRes;
4125
+ reader.readMessage(value,prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderWithDetailTableRes.deserializeBinaryFromReader);
4126
+ msg.addData(value);
4127
+ break;
4128
+ case 2:
4129
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
4130
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
4131
+ msg.setMeta(value);
4132
+ break;
4133
+ default:
4134
+ reader.skipField();
4135
+ break;
4136
+ }
4137
+ }
4138
+ return msg;
4139
+ };
4140
+
4141
+
4142
+ /**
4143
+ * Serializes the message to binary data (in protobuf wire format).
4144
+ * @return {!Uint8Array}
4145
+ */
4146
+ proto.GetPurchaseRequisitionTrxDetailListTableResponse.prototype.serializeBinary = function() {
4147
+ var writer = new jspb.BinaryWriter();
4148
+ proto.GetPurchaseRequisitionTrxDetailListTableResponse.serializeBinaryToWriter(this, writer);
4149
+ return writer.getResultBuffer();
4150
+ };
4151
+
4152
+
4153
+ /**
4154
+ * Serializes the given message to binary data (in protobuf wire
4155
+ * format), writing to the given BinaryWriter.
4156
+ * @param {!proto.GetPurchaseRequisitionTrxDetailListTableResponse} message
4157
+ * @param {!jspb.BinaryWriter} writer
4158
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4159
+ */
4160
+ proto.GetPurchaseRequisitionTrxDetailListTableResponse.serializeBinaryToWriter = function(message, writer) {
4161
+ var f = undefined;
4162
+ f = message.getDataList();
4163
+ if (f.length > 0) {
4164
+ writer.writeRepeatedMessage(
4165
+ 1,
4166
+ f,
4167
+ prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderWithDetailTableRes.serializeBinaryToWriter
4168
+ );
4169
+ }
4170
+ f = message.getMeta();
4171
+ if (f != null) {
4172
+ writer.writeMessage(
4173
+ 2,
4174
+ f,
4175
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
4176
+ );
4177
+ }
4178
+ };
4179
+
4180
+
4181
+ /**
4182
+ * repeated prisca.v1.core.transaction_builder.TransactionBuilderWithDetailTableRes data = 1;
4183
+ * @return {!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderWithDetailTableRes>}
4184
+ */
4185
+ proto.GetPurchaseRequisitionTrxDetailListTableResponse.prototype.getDataList = function() {
4186
+ return /** @type{!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderWithDetailTableRes>} */ (
4187
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderWithDetailTableRes, 1));
4188
+ };
4189
+
4190
+
4191
+ /**
4192
+ * @param {!Array<!proto.prisca.v1.core.transaction_builder.TransactionBuilderWithDetailTableRes>} value
4193
+ * @return {!proto.GetPurchaseRequisitionTrxDetailListTableResponse} returns this
4194
+ */
4195
+ proto.GetPurchaseRequisitionTrxDetailListTableResponse.prototype.setDataList = function(value) {
4196
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
4197
+ };
4198
+
4199
+
4200
+ /**
4201
+ * @param {!proto.prisca.v1.core.transaction_builder.TransactionBuilderWithDetailTableRes=} opt_value
4202
+ * @param {number=} opt_index
4203
+ * @return {!proto.prisca.v1.core.transaction_builder.TransactionBuilderWithDetailTableRes}
4204
+ */
4205
+ proto.GetPurchaseRequisitionTrxDetailListTableResponse.prototype.addData = function(opt_value, opt_index) {
4206
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.prisca.v1.core.transaction_builder.TransactionBuilderWithDetailTableRes, opt_index);
4207
+ };
4208
+
4209
+
4210
+ /**
4211
+ * Clears the list making it empty but non-null.
4212
+ * @return {!proto.GetPurchaseRequisitionTrxDetailListTableResponse} returns this
4213
+ */
4214
+ proto.GetPurchaseRequisitionTrxDetailListTableResponse.prototype.clearDataList = function() {
4215
+ return this.setDataList([]);
4216
+ };
4217
+
4218
+
4219
+ /**
4220
+ * optional prisca.v1.global.meta.Meta meta = 2;
4221
+ * @return {?proto.prisca.v1.global.meta.Meta}
4222
+ */
4223
+ proto.GetPurchaseRequisitionTrxDetailListTableResponse.prototype.getMeta = function() {
4224
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
4225
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
4226
+ };
4227
+
4228
+
4229
+ /**
4230
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
4231
+ * @return {!proto.GetPurchaseRequisitionTrxDetailListTableResponse} returns this
4232
+ */
4233
+ proto.GetPurchaseRequisitionTrxDetailListTableResponse.prototype.setMeta = function(value) {
4234
+ return jspb.Message.setWrapperField(this, 2, value);
4235
+ };
4236
+
4237
+
4238
+ /**
4239
+ * Clears the message field making it undefined.
4240
+ * @return {!proto.GetPurchaseRequisitionTrxDetailListTableResponse} returns this
4241
+ */
4242
+ proto.GetPurchaseRequisitionTrxDetailListTableResponse.prototype.clearMeta = function() {
4243
+ return this.setMeta(undefined);
4244
+ };
4245
+
4246
+
4247
+ /**
4248
+ * Returns whether this field is set.
4249
+ * @return {boolean}
4250
+ */
4251
+ proto.GetPurchaseRequisitionTrxDetailListTableResponse.prototype.hasMeta = function() {
4252
+ return jspb.Message.getField(this, 2) != null;
4253
+ };
4254
+
4255
+
4256
+ goog.object.extend(exports, proto);