@aldiokta/protocgen 1.0.45 → 1.0.47

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