@aldiokta/protocgen 1.0.37 → 1.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3020 @@
1
+ // source: prisca/v1/general_ledger_account/general_ledger_account.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_account_group_account_group_pb = require('../../../prisca/v1/account_group/account_group_pb.js');
27
+ goog.object.extend(proto, prisca_v1_account_group_account_group_pb);
28
+ var prisca_v1_chart_of_account_chart_of_account_pb = require('../../../prisca/v1/chart_of_account/chart_of_account_pb.js');
29
+ goog.object.extend(proto, prisca_v1_chart_of_account_chart_of_account_pb);
30
+ goog.exportSymbol('proto.BaseGeneralLedgerAccount', null, global);
31
+ goog.exportSymbol('proto.CreateGeneralLedgerAccountRequest', null, global);
32
+ goog.exportSymbol('proto.CreateGeneralLedgerAccountResponse', null, global);
33
+ goog.exportSymbol('proto.DeleteGeneralLedgerAccountRequest', null, global);
34
+ goog.exportSymbol('proto.DeleteGeneralLedgerAccountResponse', null, global);
35
+ goog.exportSymbol('proto.GeneralLedgerAccount', null, global);
36
+ goog.exportSymbol('proto.GeneralLedgerLanguage', null, global);
37
+ goog.exportSymbol('proto.GetGeneralLedgerAccountByIdRequest', null, global);
38
+ goog.exportSymbol('proto.GetGeneralLedgerAccountByIdResponse', null, global);
39
+ goog.exportSymbol('proto.GetListGeneralLedgerAccountRequest', null, global);
40
+ goog.exportSymbol('proto.GetListGeneralLedgerAccountResponse', null, global);
41
+ goog.exportSymbol('proto.UpdateGeneralLedgerAccountRequest', null, global);
42
+ goog.exportSymbol('proto.UpdateGeneralLedgerAccountResponse', null, global);
43
+ /**
44
+ * Generated by JsPbCodeGenerator.
45
+ * @param {Array=} opt_data Optional initial data array, typically from a
46
+ * server response, or constructed directly in Javascript. The array is used
47
+ * in place and becomes part of the constructed object. It is not cloned.
48
+ * If no data is provided, the constructed object will be empty, but still
49
+ * valid.
50
+ * @extends {jspb.Message}
51
+ * @constructor
52
+ */
53
+ proto.GeneralLedgerAccount = function(opt_data) {
54
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GeneralLedgerAccount.repeatedFields_, null);
55
+ };
56
+ goog.inherits(proto.GeneralLedgerAccount, jspb.Message);
57
+ if (goog.DEBUG && !COMPILED) {
58
+ /**
59
+ * @public
60
+ * @override
61
+ */
62
+ proto.GeneralLedgerAccount.displayName = 'proto.GeneralLedgerAccount';
63
+ }
64
+ /**
65
+ * Generated by JsPbCodeGenerator.
66
+ * @param {Array=} opt_data Optional initial data array, typically from a
67
+ * server response, or constructed directly in Javascript. The array is used
68
+ * in place and becomes part of the constructed object. It is not cloned.
69
+ * If no data is provided, the constructed object will be empty, but still
70
+ * valid.
71
+ * @extends {jspb.Message}
72
+ * @constructor
73
+ */
74
+ proto.GeneralLedgerLanguage = function(opt_data) {
75
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
76
+ };
77
+ goog.inherits(proto.GeneralLedgerLanguage, jspb.Message);
78
+ if (goog.DEBUG && !COMPILED) {
79
+ /**
80
+ * @public
81
+ * @override
82
+ */
83
+ proto.GeneralLedgerLanguage.displayName = 'proto.GeneralLedgerLanguage';
84
+ }
85
+ /**
86
+ * Generated by JsPbCodeGenerator.
87
+ * @param {Array=} opt_data Optional initial data array, typically from a
88
+ * server response, or constructed directly in Javascript. The array is used
89
+ * in place and becomes part of the constructed object. It is not cloned.
90
+ * If no data is provided, the constructed object will be empty, but still
91
+ * valid.
92
+ * @extends {jspb.Message}
93
+ * @constructor
94
+ */
95
+ proto.BaseGeneralLedgerAccount = function(opt_data) {
96
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.BaseGeneralLedgerAccount.repeatedFields_, null);
97
+ };
98
+ goog.inherits(proto.BaseGeneralLedgerAccount, jspb.Message);
99
+ if (goog.DEBUG && !COMPILED) {
100
+ /**
101
+ * @public
102
+ * @override
103
+ */
104
+ proto.BaseGeneralLedgerAccount.displayName = 'proto.BaseGeneralLedgerAccount';
105
+ }
106
+ /**
107
+ * Generated by JsPbCodeGenerator.
108
+ * @param {Array=} opt_data Optional initial data array, typically from a
109
+ * server response, or constructed directly in Javascript. The array is used
110
+ * in place and becomes part of the constructed object. It is not cloned.
111
+ * If no data is provided, the constructed object will be empty, but still
112
+ * valid.
113
+ * @extends {jspb.Message}
114
+ * @constructor
115
+ */
116
+ proto.CreateGeneralLedgerAccountRequest = function(opt_data) {
117
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
118
+ };
119
+ goog.inherits(proto.CreateGeneralLedgerAccountRequest, jspb.Message);
120
+ if (goog.DEBUG && !COMPILED) {
121
+ /**
122
+ * @public
123
+ * @override
124
+ */
125
+ proto.CreateGeneralLedgerAccountRequest.displayName = 'proto.CreateGeneralLedgerAccountRequest';
126
+ }
127
+ /**
128
+ * Generated by JsPbCodeGenerator.
129
+ * @param {Array=} opt_data Optional initial data array, typically from a
130
+ * server response, or constructed directly in Javascript. The array is used
131
+ * in place and becomes part of the constructed object. It is not cloned.
132
+ * If no data is provided, the constructed object will be empty, but still
133
+ * valid.
134
+ * @extends {jspb.Message}
135
+ * @constructor
136
+ */
137
+ proto.CreateGeneralLedgerAccountResponse = function(opt_data) {
138
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
139
+ };
140
+ goog.inherits(proto.CreateGeneralLedgerAccountResponse, jspb.Message);
141
+ if (goog.DEBUG && !COMPILED) {
142
+ /**
143
+ * @public
144
+ * @override
145
+ */
146
+ proto.CreateGeneralLedgerAccountResponse.displayName = 'proto.CreateGeneralLedgerAccountResponse';
147
+ }
148
+ /**
149
+ * Generated by JsPbCodeGenerator.
150
+ * @param {Array=} opt_data Optional initial data array, typically from a
151
+ * server response, or constructed directly in Javascript. The array is used
152
+ * in place and becomes part of the constructed object. It is not cloned.
153
+ * If no data is provided, the constructed object will be empty, but still
154
+ * valid.
155
+ * @extends {jspb.Message}
156
+ * @constructor
157
+ */
158
+ proto.UpdateGeneralLedgerAccountRequest = function(opt_data) {
159
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
160
+ };
161
+ goog.inherits(proto.UpdateGeneralLedgerAccountRequest, jspb.Message);
162
+ if (goog.DEBUG && !COMPILED) {
163
+ /**
164
+ * @public
165
+ * @override
166
+ */
167
+ proto.UpdateGeneralLedgerAccountRequest.displayName = 'proto.UpdateGeneralLedgerAccountRequest';
168
+ }
169
+ /**
170
+ * Generated by JsPbCodeGenerator.
171
+ * @param {Array=} opt_data Optional initial data array, typically from a
172
+ * server response, or constructed directly in Javascript. The array is used
173
+ * in place and becomes part of the constructed object. It is not cloned.
174
+ * If no data is provided, the constructed object will be empty, but still
175
+ * valid.
176
+ * @extends {jspb.Message}
177
+ * @constructor
178
+ */
179
+ proto.UpdateGeneralLedgerAccountResponse = function(opt_data) {
180
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
181
+ };
182
+ goog.inherits(proto.UpdateGeneralLedgerAccountResponse, jspb.Message);
183
+ if (goog.DEBUG && !COMPILED) {
184
+ /**
185
+ * @public
186
+ * @override
187
+ */
188
+ proto.UpdateGeneralLedgerAccountResponse.displayName = 'proto.UpdateGeneralLedgerAccountResponse';
189
+ }
190
+ /**
191
+ * Generated by JsPbCodeGenerator.
192
+ * @param {Array=} opt_data Optional initial data array, typically from a
193
+ * server response, or constructed directly in Javascript. The array is used
194
+ * in place and becomes part of the constructed object. It is not cloned.
195
+ * If no data is provided, the constructed object will be empty, but still
196
+ * valid.
197
+ * @extends {jspb.Message}
198
+ * @constructor
199
+ */
200
+ proto.GetGeneralLedgerAccountByIdRequest = function(opt_data) {
201
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
202
+ };
203
+ goog.inherits(proto.GetGeneralLedgerAccountByIdRequest, jspb.Message);
204
+ if (goog.DEBUG && !COMPILED) {
205
+ /**
206
+ * @public
207
+ * @override
208
+ */
209
+ proto.GetGeneralLedgerAccountByIdRequest.displayName = 'proto.GetGeneralLedgerAccountByIdRequest';
210
+ }
211
+ /**
212
+ * Generated by JsPbCodeGenerator.
213
+ * @param {Array=} opt_data Optional initial data array, typically from a
214
+ * server response, or constructed directly in Javascript. The array is used
215
+ * in place and becomes part of the constructed object. It is not cloned.
216
+ * If no data is provided, the constructed object will be empty, but still
217
+ * valid.
218
+ * @extends {jspb.Message}
219
+ * @constructor
220
+ */
221
+ proto.GetGeneralLedgerAccountByIdResponse = function(opt_data) {
222
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
223
+ };
224
+ goog.inherits(proto.GetGeneralLedgerAccountByIdResponse, jspb.Message);
225
+ if (goog.DEBUG && !COMPILED) {
226
+ /**
227
+ * @public
228
+ * @override
229
+ */
230
+ proto.GetGeneralLedgerAccountByIdResponse.displayName = 'proto.GetGeneralLedgerAccountByIdResponse';
231
+ }
232
+ /**
233
+ * Generated by JsPbCodeGenerator.
234
+ * @param {Array=} opt_data Optional initial data array, typically from a
235
+ * server response, or constructed directly in Javascript. The array is used
236
+ * in place and becomes part of the constructed object. It is not cloned.
237
+ * If no data is provided, the constructed object will be empty, but still
238
+ * valid.
239
+ * @extends {jspb.Message}
240
+ * @constructor
241
+ */
242
+ proto.GetListGeneralLedgerAccountRequest = function(opt_data) {
243
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
244
+ };
245
+ goog.inherits(proto.GetListGeneralLedgerAccountRequest, jspb.Message);
246
+ if (goog.DEBUG && !COMPILED) {
247
+ /**
248
+ * @public
249
+ * @override
250
+ */
251
+ proto.GetListGeneralLedgerAccountRequest.displayName = 'proto.GetListGeneralLedgerAccountRequest';
252
+ }
253
+ /**
254
+ * Generated by JsPbCodeGenerator.
255
+ * @param {Array=} opt_data Optional initial data array, typically from a
256
+ * server response, or constructed directly in Javascript. The array is used
257
+ * in place and becomes part of the constructed object. It is not cloned.
258
+ * If no data is provided, the constructed object will be empty, but still
259
+ * valid.
260
+ * @extends {jspb.Message}
261
+ * @constructor
262
+ */
263
+ proto.GetListGeneralLedgerAccountResponse = function(opt_data) {
264
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListGeneralLedgerAccountResponse.repeatedFields_, null);
265
+ };
266
+ goog.inherits(proto.GetListGeneralLedgerAccountResponse, jspb.Message);
267
+ if (goog.DEBUG && !COMPILED) {
268
+ /**
269
+ * @public
270
+ * @override
271
+ */
272
+ proto.GetListGeneralLedgerAccountResponse.displayName = 'proto.GetListGeneralLedgerAccountResponse';
273
+ }
274
+ /**
275
+ * Generated by JsPbCodeGenerator.
276
+ * @param {Array=} opt_data Optional initial data array, typically from a
277
+ * server response, or constructed directly in Javascript. The array is used
278
+ * in place and becomes part of the constructed object. It is not cloned.
279
+ * If no data is provided, the constructed object will be empty, but still
280
+ * valid.
281
+ * @extends {jspb.Message}
282
+ * @constructor
283
+ */
284
+ proto.DeleteGeneralLedgerAccountRequest = function(opt_data) {
285
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
286
+ };
287
+ goog.inherits(proto.DeleteGeneralLedgerAccountRequest, jspb.Message);
288
+ if (goog.DEBUG && !COMPILED) {
289
+ /**
290
+ * @public
291
+ * @override
292
+ */
293
+ proto.DeleteGeneralLedgerAccountRequest.displayName = 'proto.DeleteGeneralLedgerAccountRequest';
294
+ }
295
+ /**
296
+ * Generated by JsPbCodeGenerator.
297
+ * @param {Array=} opt_data Optional initial data array, typically from a
298
+ * server response, or constructed directly in Javascript. The array is used
299
+ * in place and becomes part of the constructed object. It is not cloned.
300
+ * If no data is provided, the constructed object will be empty, but still
301
+ * valid.
302
+ * @extends {jspb.Message}
303
+ * @constructor
304
+ */
305
+ proto.DeleteGeneralLedgerAccountResponse = function(opt_data) {
306
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
307
+ };
308
+ goog.inherits(proto.DeleteGeneralLedgerAccountResponse, jspb.Message);
309
+ if (goog.DEBUG && !COMPILED) {
310
+ /**
311
+ * @public
312
+ * @override
313
+ */
314
+ proto.DeleteGeneralLedgerAccountResponse.displayName = 'proto.DeleteGeneralLedgerAccountResponse';
315
+ }
316
+
317
+ /**
318
+ * List of repeated fields within this message type.
319
+ * @private {!Array<number>}
320
+ * @const
321
+ */
322
+ proto.GeneralLedgerAccount.repeatedFields_ = [3];
323
+
324
+
325
+
326
+ if (jspb.Message.GENERATE_TO_OBJECT) {
327
+ /**
328
+ * Creates an object representation of this proto.
329
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
330
+ * Optional fields that are not set will be set to undefined.
331
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
332
+ * For the list of reserved names please see:
333
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
334
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
335
+ * JSPB instance for transitional soy proto support:
336
+ * http://goto/soy-param-migration
337
+ * @return {!Object}
338
+ */
339
+ proto.GeneralLedgerAccount.prototype.toObject = function(opt_includeInstance) {
340
+ return proto.GeneralLedgerAccount.toObject(opt_includeInstance, this);
341
+ };
342
+
343
+
344
+ /**
345
+ * Static version of the {@see toObject} method.
346
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
347
+ * the JSPB instance for transitional soy proto support:
348
+ * http://goto/soy-param-migration
349
+ * @param {!proto.GeneralLedgerAccount} msg The msg instance to transform.
350
+ * @return {!Object}
351
+ * @suppress {unusedLocalVariables} f is only used for nested messages
352
+ */
353
+ proto.GeneralLedgerAccount.toObject = function(includeInstance, msg) {
354
+ var f, obj = {
355
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
356
+ accountType: jspb.Message.getFieldWithDefault(msg, 2, ""),
357
+ languageDescriptionList: jspb.Message.toObjectList(msg.getLanguageDescriptionList(),
358
+ proto.GeneralLedgerLanguage.toObject, includeInstance),
359
+ chartOfAccountRef: jspb.Message.getFieldWithDefault(msg, 4, ""),
360
+ accountGroupRef: jspb.Message.getFieldWithDefault(msg, 5, ""),
361
+ referencesId: jspb.Message.getFieldWithDefault(msg, 6, ""),
362
+ createdAt: jspb.Message.getFieldWithDefault(msg, 7, ""),
363
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 8, ""),
364
+ accountGroup: (f = msg.getAccountGroup()) && prisca_v1_account_group_account_group_pb.AccountGroup.toObject(includeInstance, f),
365
+ chartOfAccount: (f = msg.getChartOfAccount()) && prisca_v1_chart_of_account_chart_of_account_pb.ChartOfAccount.toObject(includeInstance, f)
366
+ };
367
+
368
+ if (includeInstance) {
369
+ obj.$jspbMessageInstance = msg;
370
+ }
371
+ return obj;
372
+ };
373
+ }
374
+
375
+
376
+ /**
377
+ * Deserializes binary data (in protobuf wire format).
378
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
379
+ * @return {!proto.GeneralLedgerAccount}
380
+ */
381
+ proto.GeneralLedgerAccount.deserializeBinary = function(bytes) {
382
+ var reader = new jspb.BinaryReader(bytes);
383
+ var msg = new proto.GeneralLedgerAccount;
384
+ return proto.GeneralLedgerAccount.deserializeBinaryFromReader(msg, reader);
385
+ };
386
+
387
+
388
+ /**
389
+ * Deserializes binary data (in protobuf wire format) from the
390
+ * given reader into the given message object.
391
+ * @param {!proto.GeneralLedgerAccount} msg The message object to deserialize into.
392
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
393
+ * @return {!proto.GeneralLedgerAccount}
394
+ */
395
+ proto.GeneralLedgerAccount.deserializeBinaryFromReader = function(msg, reader) {
396
+ while (reader.nextField()) {
397
+ if (reader.isEndGroup()) {
398
+ break;
399
+ }
400
+ var field = reader.getFieldNumber();
401
+ switch (field) {
402
+ case 1:
403
+ var value = /** @type {number} */ (reader.readInt64());
404
+ msg.setId(value);
405
+ break;
406
+ case 2:
407
+ var value = /** @type {string} */ (reader.readString());
408
+ msg.setAccountType(value);
409
+ break;
410
+ case 3:
411
+ var value = new proto.GeneralLedgerLanguage;
412
+ reader.readMessage(value,proto.GeneralLedgerLanguage.deserializeBinaryFromReader);
413
+ msg.addLanguageDescription(value);
414
+ break;
415
+ case 4:
416
+ var value = /** @type {string} */ (reader.readString());
417
+ msg.setChartOfAccountRef(value);
418
+ break;
419
+ case 5:
420
+ var value = /** @type {string} */ (reader.readString());
421
+ msg.setAccountGroupRef(value);
422
+ break;
423
+ case 6:
424
+ var value = /** @type {string} */ (reader.readString());
425
+ msg.setReferencesId(value);
426
+ break;
427
+ case 7:
428
+ var value = /** @type {string} */ (reader.readString());
429
+ msg.setCreatedAt(value);
430
+ break;
431
+ case 8:
432
+ var value = /** @type {string} */ (reader.readString());
433
+ msg.setUpdatedAt(value);
434
+ break;
435
+ case 9:
436
+ var value = new prisca_v1_account_group_account_group_pb.AccountGroup;
437
+ reader.readMessage(value,prisca_v1_account_group_account_group_pb.AccountGroup.deserializeBinaryFromReader);
438
+ msg.setAccountGroup(value);
439
+ break;
440
+ case 10:
441
+ var value = new prisca_v1_chart_of_account_chart_of_account_pb.ChartOfAccount;
442
+ reader.readMessage(value,prisca_v1_chart_of_account_chart_of_account_pb.ChartOfAccount.deserializeBinaryFromReader);
443
+ msg.setChartOfAccount(value);
444
+ break;
445
+ default:
446
+ reader.skipField();
447
+ break;
448
+ }
449
+ }
450
+ return msg;
451
+ };
452
+
453
+
454
+ /**
455
+ * Serializes the message to binary data (in protobuf wire format).
456
+ * @return {!Uint8Array}
457
+ */
458
+ proto.GeneralLedgerAccount.prototype.serializeBinary = function() {
459
+ var writer = new jspb.BinaryWriter();
460
+ proto.GeneralLedgerAccount.serializeBinaryToWriter(this, writer);
461
+ return writer.getResultBuffer();
462
+ };
463
+
464
+
465
+ /**
466
+ * Serializes the given message to binary data (in protobuf wire
467
+ * format), writing to the given BinaryWriter.
468
+ * @param {!proto.GeneralLedgerAccount} message
469
+ * @param {!jspb.BinaryWriter} writer
470
+ * @suppress {unusedLocalVariables} f is only used for nested messages
471
+ */
472
+ proto.GeneralLedgerAccount.serializeBinaryToWriter = function(message, writer) {
473
+ var f = undefined;
474
+ f = message.getId();
475
+ if (f !== 0) {
476
+ writer.writeInt64(
477
+ 1,
478
+ f
479
+ );
480
+ }
481
+ f = message.getAccountType();
482
+ if (f.length > 0) {
483
+ writer.writeString(
484
+ 2,
485
+ f
486
+ );
487
+ }
488
+ f = message.getLanguageDescriptionList();
489
+ if (f.length > 0) {
490
+ writer.writeRepeatedMessage(
491
+ 3,
492
+ f,
493
+ proto.GeneralLedgerLanguage.serializeBinaryToWriter
494
+ );
495
+ }
496
+ f = message.getChartOfAccountRef();
497
+ if (f.length > 0) {
498
+ writer.writeString(
499
+ 4,
500
+ f
501
+ );
502
+ }
503
+ f = message.getAccountGroupRef();
504
+ if (f.length > 0) {
505
+ writer.writeString(
506
+ 5,
507
+ f
508
+ );
509
+ }
510
+ f = message.getReferencesId();
511
+ if (f.length > 0) {
512
+ writer.writeString(
513
+ 6,
514
+ f
515
+ );
516
+ }
517
+ f = message.getCreatedAt();
518
+ if (f.length > 0) {
519
+ writer.writeString(
520
+ 7,
521
+ f
522
+ );
523
+ }
524
+ f = message.getUpdatedAt();
525
+ if (f.length > 0) {
526
+ writer.writeString(
527
+ 8,
528
+ f
529
+ );
530
+ }
531
+ f = message.getAccountGroup();
532
+ if (f != null) {
533
+ writer.writeMessage(
534
+ 9,
535
+ f,
536
+ prisca_v1_account_group_account_group_pb.AccountGroup.serializeBinaryToWriter
537
+ );
538
+ }
539
+ f = message.getChartOfAccount();
540
+ if (f != null) {
541
+ writer.writeMessage(
542
+ 10,
543
+ f,
544
+ prisca_v1_chart_of_account_chart_of_account_pb.ChartOfAccount.serializeBinaryToWriter
545
+ );
546
+ }
547
+ };
548
+
549
+
550
+ /**
551
+ * optional int64 id = 1;
552
+ * @return {number}
553
+ */
554
+ proto.GeneralLedgerAccount.prototype.getId = function() {
555
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
556
+ };
557
+
558
+
559
+ /**
560
+ * @param {number} value
561
+ * @return {!proto.GeneralLedgerAccount} returns this
562
+ */
563
+ proto.GeneralLedgerAccount.prototype.setId = function(value) {
564
+ return jspb.Message.setProto3IntField(this, 1, value);
565
+ };
566
+
567
+
568
+ /**
569
+ * optional string account_type = 2;
570
+ * @return {string}
571
+ */
572
+ proto.GeneralLedgerAccount.prototype.getAccountType = function() {
573
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
574
+ };
575
+
576
+
577
+ /**
578
+ * @param {string} value
579
+ * @return {!proto.GeneralLedgerAccount} returns this
580
+ */
581
+ proto.GeneralLedgerAccount.prototype.setAccountType = function(value) {
582
+ return jspb.Message.setProto3StringField(this, 2, value);
583
+ };
584
+
585
+
586
+ /**
587
+ * repeated GeneralLedgerLanguage language_description = 3;
588
+ * @return {!Array<!proto.GeneralLedgerLanguage>}
589
+ */
590
+ proto.GeneralLedgerAccount.prototype.getLanguageDescriptionList = function() {
591
+ return /** @type{!Array<!proto.GeneralLedgerLanguage>} */ (
592
+ jspb.Message.getRepeatedWrapperField(this, proto.GeneralLedgerLanguage, 3));
593
+ };
594
+
595
+
596
+ /**
597
+ * @param {!Array<!proto.GeneralLedgerLanguage>} value
598
+ * @return {!proto.GeneralLedgerAccount} returns this
599
+ */
600
+ proto.GeneralLedgerAccount.prototype.setLanguageDescriptionList = function(value) {
601
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
602
+ };
603
+
604
+
605
+ /**
606
+ * @param {!proto.GeneralLedgerLanguage=} opt_value
607
+ * @param {number=} opt_index
608
+ * @return {!proto.GeneralLedgerLanguage}
609
+ */
610
+ proto.GeneralLedgerAccount.prototype.addLanguageDescription = function(opt_value, opt_index) {
611
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.GeneralLedgerLanguage, opt_index);
612
+ };
613
+
614
+
615
+ /**
616
+ * Clears the list making it empty but non-null.
617
+ * @return {!proto.GeneralLedgerAccount} returns this
618
+ */
619
+ proto.GeneralLedgerAccount.prototype.clearLanguageDescriptionList = function() {
620
+ return this.setLanguageDescriptionList([]);
621
+ };
622
+
623
+
624
+ /**
625
+ * optional string chart_of_account_ref = 4;
626
+ * @return {string}
627
+ */
628
+ proto.GeneralLedgerAccount.prototype.getChartOfAccountRef = function() {
629
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
630
+ };
631
+
632
+
633
+ /**
634
+ * @param {string} value
635
+ * @return {!proto.GeneralLedgerAccount} returns this
636
+ */
637
+ proto.GeneralLedgerAccount.prototype.setChartOfAccountRef = function(value) {
638
+ return jspb.Message.setProto3StringField(this, 4, value);
639
+ };
640
+
641
+
642
+ /**
643
+ * optional string account_group_ref = 5;
644
+ * @return {string}
645
+ */
646
+ proto.GeneralLedgerAccount.prototype.getAccountGroupRef = function() {
647
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
648
+ };
649
+
650
+
651
+ /**
652
+ * @param {string} value
653
+ * @return {!proto.GeneralLedgerAccount} returns this
654
+ */
655
+ proto.GeneralLedgerAccount.prototype.setAccountGroupRef = function(value) {
656
+ return jspb.Message.setProto3StringField(this, 5, value);
657
+ };
658
+
659
+
660
+ /**
661
+ * optional string references_id = 6;
662
+ * @return {string}
663
+ */
664
+ proto.GeneralLedgerAccount.prototype.getReferencesId = function() {
665
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
666
+ };
667
+
668
+
669
+ /**
670
+ * @param {string} value
671
+ * @return {!proto.GeneralLedgerAccount} returns this
672
+ */
673
+ proto.GeneralLedgerAccount.prototype.setReferencesId = function(value) {
674
+ return jspb.Message.setProto3StringField(this, 6, value);
675
+ };
676
+
677
+
678
+ /**
679
+ * optional string created_at = 7;
680
+ * @return {string}
681
+ */
682
+ proto.GeneralLedgerAccount.prototype.getCreatedAt = function() {
683
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
684
+ };
685
+
686
+
687
+ /**
688
+ * @param {string} value
689
+ * @return {!proto.GeneralLedgerAccount} returns this
690
+ */
691
+ proto.GeneralLedgerAccount.prototype.setCreatedAt = function(value) {
692
+ return jspb.Message.setProto3StringField(this, 7, value);
693
+ };
694
+
695
+
696
+ /**
697
+ * optional string updated_at = 8;
698
+ * @return {string}
699
+ */
700
+ proto.GeneralLedgerAccount.prototype.getUpdatedAt = function() {
701
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
702
+ };
703
+
704
+
705
+ /**
706
+ * @param {string} value
707
+ * @return {!proto.GeneralLedgerAccount} returns this
708
+ */
709
+ proto.GeneralLedgerAccount.prototype.setUpdatedAt = function(value) {
710
+ return jspb.Message.setProto3StringField(this, 8, value);
711
+ };
712
+
713
+
714
+ /**
715
+ * optional AccountGroup account_group = 9;
716
+ * @return {?proto.AccountGroup}
717
+ */
718
+ proto.GeneralLedgerAccount.prototype.getAccountGroup = function() {
719
+ return /** @type{?proto.AccountGroup} */ (
720
+ jspb.Message.getWrapperField(this, prisca_v1_account_group_account_group_pb.AccountGroup, 9));
721
+ };
722
+
723
+
724
+ /**
725
+ * @param {?proto.AccountGroup|undefined} value
726
+ * @return {!proto.GeneralLedgerAccount} returns this
727
+ */
728
+ proto.GeneralLedgerAccount.prototype.setAccountGroup = function(value) {
729
+ return jspb.Message.setWrapperField(this, 9, value);
730
+ };
731
+
732
+
733
+ /**
734
+ * Clears the message field making it undefined.
735
+ * @return {!proto.GeneralLedgerAccount} returns this
736
+ */
737
+ proto.GeneralLedgerAccount.prototype.clearAccountGroup = function() {
738
+ return this.setAccountGroup(undefined);
739
+ };
740
+
741
+
742
+ /**
743
+ * Returns whether this field is set.
744
+ * @return {boolean}
745
+ */
746
+ proto.GeneralLedgerAccount.prototype.hasAccountGroup = function() {
747
+ return jspb.Message.getField(this, 9) != null;
748
+ };
749
+
750
+
751
+ /**
752
+ * optional ChartOfAccount chart_of_account = 10;
753
+ * @return {?proto.ChartOfAccount}
754
+ */
755
+ proto.GeneralLedgerAccount.prototype.getChartOfAccount = function() {
756
+ return /** @type{?proto.ChartOfAccount} */ (
757
+ jspb.Message.getWrapperField(this, prisca_v1_chart_of_account_chart_of_account_pb.ChartOfAccount, 10));
758
+ };
759
+
760
+
761
+ /**
762
+ * @param {?proto.ChartOfAccount|undefined} value
763
+ * @return {!proto.GeneralLedgerAccount} returns this
764
+ */
765
+ proto.GeneralLedgerAccount.prototype.setChartOfAccount = function(value) {
766
+ return jspb.Message.setWrapperField(this, 10, value);
767
+ };
768
+
769
+
770
+ /**
771
+ * Clears the message field making it undefined.
772
+ * @return {!proto.GeneralLedgerAccount} returns this
773
+ */
774
+ proto.GeneralLedgerAccount.prototype.clearChartOfAccount = function() {
775
+ return this.setChartOfAccount(undefined);
776
+ };
777
+
778
+
779
+ /**
780
+ * Returns whether this field is set.
781
+ * @return {boolean}
782
+ */
783
+ proto.GeneralLedgerAccount.prototype.hasChartOfAccount = function() {
784
+ return jspb.Message.getField(this, 10) != null;
785
+ };
786
+
787
+
788
+
789
+
790
+
791
+ if (jspb.Message.GENERATE_TO_OBJECT) {
792
+ /**
793
+ * Creates an object representation of this proto.
794
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
795
+ * Optional fields that are not set will be set to undefined.
796
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
797
+ * For the list of reserved names please see:
798
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
799
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
800
+ * JSPB instance for transitional soy proto support:
801
+ * http://goto/soy-param-migration
802
+ * @return {!Object}
803
+ */
804
+ proto.GeneralLedgerLanguage.prototype.toObject = function(opt_includeInstance) {
805
+ return proto.GeneralLedgerLanguage.toObject(opt_includeInstance, this);
806
+ };
807
+
808
+
809
+ /**
810
+ * Static version of the {@see toObject} method.
811
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
812
+ * the JSPB instance for transitional soy proto support:
813
+ * http://goto/soy-param-migration
814
+ * @param {!proto.GeneralLedgerLanguage} msg The msg instance to transform.
815
+ * @return {!Object}
816
+ * @suppress {unusedLocalVariables} f is only used for nested messages
817
+ */
818
+ proto.GeneralLedgerLanguage.toObject = function(includeInstance, msg) {
819
+ var f, obj = {
820
+ languageKey: jspb.Message.getFieldWithDefault(msg, 1, ""),
821
+ shortText: jspb.Message.getFieldWithDefault(msg, 2, ""),
822
+ longText: jspb.Message.getFieldWithDefault(msg, 3, "")
823
+ };
824
+
825
+ if (includeInstance) {
826
+ obj.$jspbMessageInstance = msg;
827
+ }
828
+ return obj;
829
+ };
830
+ }
831
+
832
+
833
+ /**
834
+ * Deserializes binary data (in protobuf wire format).
835
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
836
+ * @return {!proto.GeneralLedgerLanguage}
837
+ */
838
+ proto.GeneralLedgerLanguage.deserializeBinary = function(bytes) {
839
+ var reader = new jspb.BinaryReader(bytes);
840
+ var msg = new proto.GeneralLedgerLanguage;
841
+ return proto.GeneralLedgerLanguage.deserializeBinaryFromReader(msg, reader);
842
+ };
843
+
844
+
845
+ /**
846
+ * Deserializes binary data (in protobuf wire format) from the
847
+ * given reader into the given message object.
848
+ * @param {!proto.GeneralLedgerLanguage} msg The message object to deserialize into.
849
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
850
+ * @return {!proto.GeneralLedgerLanguage}
851
+ */
852
+ proto.GeneralLedgerLanguage.deserializeBinaryFromReader = function(msg, reader) {
853
+ while (reader.nextField()) {
854
+ if (reader.isEndGroup()) {
855
+ break;
856
+ }
857
+ var field = reader.getFieldNumber();
858
+ switch (field) {
859
+ case 1:
860
+ var value = /** @type {string} */ (reader.readString());
861
+ msg.setLanguageKey(value);
862
+ break;
863
+ case 2:
864
+ var value = /** @type {string} */ (reader.readString());
865
+ msg.setShortText(value);
866
+ break;
867
+ case 3:
868
+ var value = /** @type {string} */ (reader.readString());
869
+ msg.setLongText(value);
870
+ break;
871
+ default:
872
+ reader.skipField();
873
+ break;
874
+ }
875
+ }
876
+ return msg;
877
+ };
878
+
879
+
880
+ /**
881
+ * Serializes the message to binary data (in protobuf wire format).
882
+ * @return {!Uint8Array}
883
+ */
884
+ proto.GeneralLedgerLanguage.prototype.serializeBinary = function() {
885
+ var writer = new jspb.BinaryWriter();
886
+ proto.GeneralLedgerLanguage.serializeBinaryToWriter(this, writer);
887
+ return writer.getResultBuffer();
888
+ };
889
+
890
+
891
+ /**
892
+ * Serializes the given message to binary data (in protobuf wire
893
+ * format), writing to the given BinaryWriter.
894
+ * @param {!proto.GeneralLedgerLanguage} message
895
+ * @param {!jspb.BinaryWriter} writer
896
+ * @suppress {unusedLocalVariables} f is only used for nested messages
897
+ */
898
+ proto.GeneralLedgerLanguage.serializeBinaryToWriter = function(message, writer) {
899
+ var f = undefined;
900
+ f = message.getLanguageKey();
901
+ if (f.length > 0) {
902
+ writer.writeString(
903
+ 1,
904
+ f
905
+ );
906
+ }
907
+ f = message.getShortText();
908
+ if (f.length > 0) {
909
+ writer.writeString(
910
+ 2,
911
+ f
912
+ );
913
+ }
914
+ f = message.getLongText();
915
+ if (f.length > 0) {
916
+ writer.writeString(
917
+ 3,
918
+ f
919
+ );
920
+ }
921
+ };
922
+
923
+
924
+ /**
925
+ * optional string language_key = 1;
926
+ * @return {string}
927
+ */
928
+ proto.GeneralLedgerLanguage.prototype.getLanguageKey = function() {
929
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
930
+ };
931
+
932
+
933
+ /**
934
+ * @param {string} value
935
+ * @return {!proto.GeneralLedgerLanguage} returns this
936
+ */
937
+ proto.GeneralLedgerLanguage.prototype.setLanguageKey = function(value) {
938
+ return jspb.Message.setProto3StringField(this, 1, value);
939
+ };
940
+
941
+
942
+ /**
943
+ * optional string short_text = 2;
944
+ * @return {string}
945
+ */
946
+ proto.GeneralLedgerLanguage.prototype.getShortText = function() {
947
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
948
+ };
949
+
950
+
951
+ /**
952
+ * @param {string} value
953
+ * @return {!proto.GeneralLedgerLanguage} returns this
954
+ */
955
+ proto.GeneralLedgerLanguage.prototype.setShortText = function(value) {
956
+ return jspb.Message.setProto3StringField(this, 2, value);
957
+ };
958
+
959
+
960
+ /**
961
+ * optional string long_text = 3;
962
+ * @return {string}
963
+ */
964
+ proto.GeneralLedgerLanguage.prototype.getLongText = function() {
965
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
966
+ };
967
+
968
+
969
+ /**
970
+ * @param {string} value
971
+ * @return {!proto.GeneralLedgerLanguage} returns this
972
+ */
973
+ proto.GeneralLedgerLanguage.prototype.setLongText = function(value) {
974
+ return jspb.Message.setProto3StringField(this, 3, value);
975
+ };
976
+
977
+
978
+
979
+ /**
980
+ * List of repeated fields within this message type.
981
+ * @private {!Array<number>}
982
+ * @const
983
+ */
984
+ proto.BaseGeneralLedgerAccount.repeatedFields_ = [2];
985
+
986
+
987
+
988
+ if (jspb.Message.GENERATE_TO_OBJECT) {
989
+ /**
990
+ * Creates an object representation of this proto.
991
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
992
+ * Optional fields that are not set will be set to undefined.
993
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
994
+ * For the list of reserved names please see:
995
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
996
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
997
+ * JSPB instance for transitional soy proto support:
998
+ * http://goto/soy-param-migration
999
+ * @return {!Object}
1000
+ */
1001
+ proto.BaseGeneralLedgerAccount.prototype.toObject = function(opt_includeInstance) {
1002
+ return proto.BaseGeneralLedgerAccount.toObject(opt_includeInstance, this);
1003
+ };
1004
+
1005
+
1006
+ /**
1007
+ * Static version of the {@see toObject} method.
1008
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1009
+ * the JSPB instance for transitional soy proto support:
1010
+ * http://goto/soy-param-migration
1011
+ * @param {!proto.BaseGeneralLedgerAccount} msg The msg instance to transform.
1012
+ * @return {!Object}
1013
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1014
+ */
1015
+ proto.BaseGeneralLedgerAccount.toObject = function(includeInstance, msg) {
1016
+ var f, obj = {
1017
+ accountType: jspb.Message.getFieldWithDefault(msg, 1, ""),
1018
+ languageDescriptionList: jspb.Message.toObjectList(msg.getLanguageDescriptionList(),
1019
+ proto.GeneralLedgerLanguage.toObject, includeInstance),
1020
+ chartOfAccountRef: jspb.Message.getFieldWithDefault(msg, 3, ""),
1021
+ accountGroupRef: jspb.Message.getFieldWithDefault(msg, 4, "")
1022
+ };
1023
+
1024
+ if (includeInstance) {
1025
+ obj.$jspbMessageInstance = msg;
1026
+ }
1027
+ return obj;
1028
+ };
1029
+ }
1030
+
1031
+
1032
+ /**
1033
+ * Deserializes binary data (in protobuf wire format).
1034
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1035
+ * @return {!proto.BaseGeneralLedgerAccount}
1036
+ */
1037
+ proto.BaseGeneralLedgerAccount.deserializeBinary = function(bytes) {
1038
+ var reader = new jspb.BinaryReader(bytes);
1039
+ var msg = new proto.BaseGeneralLedgerAccount;
1040
+ return proto.BaseGeneralLedgerAccount.deserializeBinaryFromReader(msg, reader);
1041
+ };
1042
+
1043
+
1044
+ /**
1045
+ * Deserializes binary data (in protobuf wire format) from the
1046
+ * given reader into the given message object.
1047
+ * @param {!proto.BaseGeneralLedgerAccount} msg The message object to deserialize into.
1048
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1049
+ * @return {!proto.BaseGeneralLedgerAccount}
1050
+ */
1051
+ proto.BaseGeneralLedgerAccount.deserializeBinaryFromReader = function(msg, reader) {
1052
+ while (reader.nextField()) {
1053
+ if (reader.isEndGroup()) {
1054
+ break;
1055
+ }
1056
+ var field = reader.getFieldNumber();
1057
+ switch (field) {
1058
+ case 1:
1059
+ var value = /** @type {string} */ (reader.readString());
1060
+ msg.setAccountType(value);
1061
+ break;
1062
+ case 2:
1063
+ var value = new proto.GeneralLedgerLanguage;
1064
+ reader.readMessage(value,proto.GeneralLedgerLanguage.deserializeBinaryFromReader);
1065
+ msg.addLanguageDescription(value);
1066
+ break;
1067
+ case 3:
1068
+ var value = /** @type {string} */ (reader.readString());
1069
+ msg.setChartOfAccountRef(value);
1070
+ break;
1071
+ case 4:
1072
+ var value = /** @type {string} */ (reader.readString());
1073
+ msg.setAccountGroupRef(value);
1074
+ break;
1075
+ default:
1076
+ reader.skipField();
1077
+ break;
1078
+ }
1079
+ }
1080
+ return msg;
1081
+ };
1082
+
1083
+
1084
+ /**
1085
+ * Serializes the message to binary data (in protobuf wire format).
1086
+ * @return {!Uint8Array}
1087
+ */
1088
+ proto.BaseGeneralLedgerAccount.prototype.serializeBinary = function() {
1089
+ var writer = new jspb.BinaryWriter();
1090
+ proto.BaseGeneralLedgerAccount.serializeBinaryToWriter(this, writer);
1091
+ return writer.getResultBuffer();
1092
+ };
1093
+
1094
+
1095
+ /**
1096
+ * Serializes the given message to binary data (in protobuf wire
1097
+ * format), writing to the given BinaryWriter.
1098
+ * @param {!proto.BaseGeneralLedgerAccount} message
1099
+ * @param {!jspb.BinaryWriter} writer
1100
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1101
+ */
1102
+ proto.BaseGeneralLedgerAccount.serializeBinaryToWriter = function(message, writer) {
1103
+ var f = undefined;
1104
+ f = message.getAccountType();
1105
+ if (f.length > 0) {
1106
+ writer.writeString(
1107
+ 1,
1108
+ f
1109
+ );
1110
+ }
1111
+ f = message.getLanguageDescriptionList();
1112
+ if (f.length > 0) {
1113
+ writer.writeRepeatedMessage(
1114
+ 2,
1115
+ f,
1116
+ proto.GeneralLedgerLanguage.serializeBinaryToWriter
1117
+ );
1118
+ }
1119
+ f = message.getChartOfAccountRef();
1120
+ if (f.length > 0) {
1121
+ writer.writeString(
1122
+ 3,
1123
+ f
1124
+ );
1125
+ }
1126
+ f = message.getAccountGroupRef();
1127
+ if (f.length > 0) {
1128
+ writer.writeString(
1129
+ 4,
1130
+ f
1131
+ );
1132
+ }
1133
+ };
1134
+
1135
+
1136
+ /**
1137
+ * optional string account_type = 1;
1138
+ * @return {string}
1139
+ */
1140
+ proto.BaseGeneralLedgerAccount.prototype.getAccountType = function() {
1141
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1142
+ };
1143
+
1144
+
1145
+ /**
1146
+ * @param {string} value
1147
+ * @return {!proto.BaseGeneralLedgerAccount} returns this
1148
+ */
1149
+ proto.BaseGeneralLedgerAccount.prototype.setAccountType = function(value) {
1150
+ return jspb.Message.setProto3StringField(this, 1, value);
1151
+ };
1152
+
1153
+
1154
+ /**
1155
+ * repeated GeneralLedgerLanguage language_description = 2;
1156
+ * @return {!Array<!proto.GeneralLedgerLanguage>}
1157
+ */
1158
+ proto.BaseGeneralLedgerAccount.prototype.getLanguageDescriptionList = function() {
1159
+ return /** @type{!Array<!proto.GeneralLedgerLanguage>} */ (
1160
+ jspb.Message.getRepeatedWrapperField(this, proto.GeneralLedgerLanguage, 2));
1161
+ };
1162
+
1163
+
1164
+ /**
1165
+ * @param {!Array<!proto.GeneralLedgerLanguage>} value
1166
+ * @return {!proto.BaseGeneralLedgerAccount} returns this
1167
+ */
1168
+ proto.BaseGeneralLedgerAccount.prototype.setLanguageDescriptionList = function(value) {
1169
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
1170
+ };
1171
+
1172
+
1173
+ /**
1174
+ * @param {!proto.GeneralLedgerLanguage=} opt_value
1175
+ * @param {number=} opt_index
1176
+ * @return {!proto.GeneralLedgerLanguage}
1177
+ */
1178
+ proto.BaseGeneralLedgerAccount.prototype.addLanguageDescription = function(opt_value, opt_index) {
1179
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.GeneralLedgerLanguage, opt_index);
1180
+ };
1181
+
1182
+
1183
+ /**
1184
+ * Clears the list making it empty but non-null.
1185
+ * @return {!proto.BaseGeneralLedgerAccount} returns this
1186
+ */
1187
+ proto.BaseGeneralLedgerAccount.prototype.clearLanguageDescriptionList = function() {
1188
+ return this.setLanguageDescriptionList([]);
1189
+ };
1190
+
1191
+
1192
+ /**
1193
+ * optional string chart_of_account_ref = 3;
1194
+ * @return {string}
1195
+ */
1196
+ proto.BaseGeneralLedgerAccount.prototype.getChartOfAccountRef = function() {
1197
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1198
+ };
1199
+
1200
+
1201
+ /**
1202
+ * @param {string} value
1203
+ * @return {!proto.BaseGeneralLedgerAccount} returns this
1204
+ */
1205
+ proto.BaseGeneralLedgerAccount.prototype.setChartOfAccountRef = function(value) {
1206
+ return jspb.Message.setProto3StringField(this, 3, value);
1207
+ };
1208
+
1209
+
1210
+ /**
1211
+ * optional string account_group_ref = 4;
1212
+ * @return {string}
1213
+ */
1214
+ proto.BaseGeneralLedgerAccount.prototype.getAccountGroupRef = function() {
1215
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1216
+ };
1217
+
1218
+
1219
+ /**
1220
+ * @param {string} value
1221
+ * @return {!proto.BaseGeneralLedgerAccount} returns this
1222
+ */
1223
+ proto.BaseGeneralLedgerAccount.prototype.setAccountGroupRef = function(value) {
1224
+ return jspb.Message.setProto3StringField(this, 4, value);
1225
+ };
1226
+
1227
+
1228
+
1229
+
1230
+
1231
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1232
+ /**
1233
+ * Creates an object representation of this proto.
1234
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1235
+ * Optional fields that are not set will be set to undefined.
1236
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1237
+ * For the list of reserved names please see:
1238
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1239
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1240
+ * JSPB instance for transitional soy proto support:
1241
+ * http://goto/soy-param-migration
1242
+ * @return {!Object}
1243
+ */
1244
+ proto.CreateGeneralLedgerAccountRequest.prototype.toObject = function(opt_includeInstance) {
1245
+ return proto.CreateGeneralLedgerAccountRequest.toObject(opt_includeInstance, this);
1246
+ };
1247
+
1248
+
1249
+ /**
1250
+ * Static version of the {@see toObject} method.
1251
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1252
+ * the JSPB instance for transitional soy proto support:
1253
+ * http://goto/soy-param-migration
1254
+ * @param {!proto.CreateGeneralLedgerAccountRequest} msg The msg instance to transform.
1255
+ * @return {!Object}
1256
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1257
+ */
1258
+ proto.CreateGeneralLedgerAccountRequest.toObject = function(includeInstance, msg) {
1259
+ var f, obj = {
1260
+ baseGeneralLedgerAccount: (f = msg.getBaseGeneralLedgerAccount()) && proto.BaseGeneralLedgerAccount.toObject(includeInstance, f)
1261
+ };
1262
+
1263
+ if (includeInstance) {
1264
+ obj.$jspbMessageInstance = msg;
1265
+ }
1266
+ return obj;
1267
+ };
1268
+ }
1269
+
1270
+
1271
+ /**
1272
+ * Deserializes binary data (in protobuf wire format).
1273
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1274
+ * @return {!proto.CreateGeneralLedgerAccountRequest}
1275
+ */
1276
+ proto.CreateGeneralLedgerAccountRequest.deserializeBinary = function(bytes) {
1277
+ var reader = new jspb.BinaryReader(bytes);
1278
+ var msg = new proto.CreateGeneralLedgerAccountRequest;
1279
+ return proto.CreateGeneralLedgerAccountRequest.deserializeBinaryFromReader(msg, reader);
1280
+ };
1281
+
1282
+
1283
+ /**
1284
+ * Deserializes binary data (in protobuf wire format) from the
1285
+ * given reader into the given message object.
1286
+ * @param {!proto.CreateGeneralLedgerAccountRequest} msg The message object to deserialize into.
1287
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1288
+ * @return {!proto.CreateGeneralLedgerAccountRequest}
1289
+ */
1290
+ proto.CreateGeneralLedgerAccountRequest.deserializeBinaryFromReader = function(msg, reader) {
1291
+ while (reader.nextField()) {
1292
+ if (reader.isEndGroup()) {
1293
+ break;
1294
+ }
1295
+ var field = reader.getFieldNumber();
1296
+ switch (field) {
1297
+ case 1:
1298
+ var value = new proto.BaseGeneralLedgerAccount;
1299
+ reader.readMessage(value,proto.BaseGeneralLedgerAccount.deserializeBinaryFromReader);
1300
+ msg.setBaseGeneralLedgerAccount(value);
1301
+ break;
1302
+ default:
1303
+ reader.skipField();
1304
+ break;
1305
+ }
1306
+ }
1307
+ return msg;
1308
+ };
1309
+
1310
+
1311
+ /**
1312
+ * Serializes the message to binary data (in protobuf wire format).
1313
+ * @return {!Uint8Array}
1314
+ */
1315
+ proto.CreateGeneralLedgerAccountRequest.prototype.serializeBinary = function() {
1316
+ var writer = new jspb.BinaryWriter();
1317
+ proto.CreateGeneralLedgerAccountRequest.serializeBinaryToWriter(this, writer);
1318
+ return writer.getResultBuffer();
1319
+ };
1320
+
1321
+
1322
+ /**
1323
+ * Serializes the given message to binary data (in protobuf wire
1324
+ * format), writing to the given BinaryWriter.
1325
+ * @param {!proto.CreateGeneralLedgerAccountRequest} message
1326
+ * @param {!jspb.BinaryWriter} writer
1327
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1328
+ */
1329
+ proto.CreateGeneralLedgerAccountRequest.serializeBinaryToWriter = function(message, writer) {
1330
+ var f = undefined;
1331
+ f = message.getBaseGeneralLedgerAccount();
1332
+ if (f != null) {
1333
+ writer.writeMessage(
1334
+ 1,
1335
+ f,
1336
+ proto.BaseGeneralLedgerAccount.serializeBinaryToWriter
1337
+ );
1338
+ }
1339
+ };
1340
+
1341
+
1342
+ /**
1343
+ * optional BaseGeneralLedgerAccount base_general_ledger_account = 1;
1344
+ * @return {?proto.BaseGeneralLedgerAccount}
1345
+ */
1346
+ proto.CreateGeneralLedgerAccountRequest.prototype.getBaseGeneralLedgerAccount = function() {
1347
+ return /** @type{?proto.BaseGeneralLedgerAccount} */ (
1348
+ jspb.Message.getWrapperField(this, proto.BaseGeneralLedgerAccount, 1));
1349
+ };
1350
+
1351
+
1352
+ /**
1353
+ * @param {?proto.BaseGeneralLedgerAccount|undefined} value
1354
+ * @return {!proto.CreateGeneralLedgerAccountRequest} returns this
1355
+ */
1356
+ proto.CreateGeneralLedgerAccountRequest.prototype.setBaseGeneralLedgerAccount = function(value) {
1357
+ return jspb.Message.setWrapperField(this, 1, value);
1358
+ };
1359
+
1360
+
1361
+ /**
1362
+ * Clears the message field making it undefined.
1363
+ * @return {!proto.CreateGeneralLedgerAccountRequest} returns this
1364
+ */
1365
+ proto.CreateGeneralLedgerAccountRequest.prototype.clearBaseGeneralLedgerAccount = function() {
1366
+ return this.setBaseGeneralLedgerAccount(undefined);
1367
+ };
1368
+
1369
+
1370
+ /**
1371
+ * Returns whether this field is set.
1372
+ * @return {boolean}
1373
+ */
1374
+ proto.CreateGeneralLedgerAccountRequest.prototype.hasBaseGeneralLedgerAccount = function() {
1375
+ return jspb.Message.getField(this, 1) != null;
1376
+ };
1377
+
1378
+
1379
+
1380
+
1381
+
1382
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1383
+ /**
1384
+ * Creates an object representation of this proto.
1385
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1386
+ * Optional fields that are not set will be set to undefined.
1387
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1388
+ * For the list of reserved names please see:
1389
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1390
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1391
+ * JSPB instance for transitional soy proto support:
1392
+ * http://goto/soy-param-migration
1393
+ * @return {!Object}
1394
+ */
1395
+ proto.CreateGeneralLedgerAccountResponse.prototype.toObject = function(opt_includeInstance) {
1396
+ return proto.CreateGeneralLedgerAccountResponse.toObject(opt_includeInstance, this);
1397
+ };
1398
+
1399
+
1400
+ /**
1401
+ * Static version of the {@see toObject} method.
1402
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1403
+ * the JSPB instance for transitional soy proto support:
1404
+ * http://goto/soy-param-migration
1405
+ * @param {!proto.CreateGeneralLedgerAccountResponse} msg The msg instance to transform.
1406
+ * @return {!Object}
1407
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1408
+ */
1409
+ proto.CreateGeneralLedgerAccountResponse.toObject = function(includeInstance, msg) {
1410
+ var f, obj = {
1411
+ generalLedgerAccount: (f = msg.getGeneralLedgerAccount()) && proto.GeneralLedgerAccount.toObject(includeInstance, f),
1412
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1413
+ };
1414
+
1415
+ if (includeInstance) {
1416
+ obj.$jspbMessageInstance = msg;
1417
+ }
1418
+ return obj;
1419
+ };
1420
+ }
1421
+
1422
+
1423
+ /**
1424
+ * Deserializes binary data (in protobuf wire format).
1425
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1426
+ * @return {!proto.CreateGeneralLedgerAccountResponse}
1427
+ */
1428
+ proto.CreateGeneralLedgerAccountResponse.deserializeBinary = function(bytes) {
1429
+ var reader = new jspb.BinaryReader(bytes);
1430
+ var msg = new proto.CreateGeneralLedgerAccountResponse;
1431
+ return proto.CreateGeneralLedgerAccountResponse.deserializeBinaryFromReader(msg, reader);
1432
+ };
1433
+
1434
+
1435
+ /**
1436
+ * Deserializes binary data (in protobuf wire format) from the
1437
+ * given reader into the given message object.
1438
+ * @param {!proto.CreateGeneralLedgerAccountResponse} msg The message object to deserialize into.
1439
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1440
+ * @return {!proto.CreateGeneralLedgerAccountResponse}
1441
+ */
1442
+ proto.CreateGeneralLedgerAccountResponse.deserializeBinaryFromReader = function(msg, reader) {
1443
+ while (reader.nextField()) {
1444
+ if (reader.isEndGroup()) {
1445
+ break;
1446
+ }
1447
+ var field = reader.getFieldNumber();
1448
+ switch (field) {
1449
+ case 1:
1450
+ var value = new proto.GeneralLedgerAccount;
1451
+ reader.readMessage(value,proto.GeneralLedgerAccount.deserializeBinaryFromReader);
1452
+ msg.setGeneralLedgerAccount(value);
1453
+ break;
1454
+ case 2:
1455
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1456
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1457
+ msg.setMeta(value);
1458
+ break;
1459
+ default:
1460
+ reader.skipField();
1461
+ break;
1462
+ }
1463
+ }
1464
+ return msg;
1465
+ };
1466
+
1467
+
1468
+ /**
1469
+ * Serializes the message to binary data (in protobuf wire format).
1470
+ * @return {!Uint8Array}
1471
+ */
1472
+ proto.CreateGeneralLedgerAccountResponse.prototype.serializeBinary = function() {
1473
+ var writer = new jspb.BinaryWriter();
1474
+ proto.CreateGeneralLedgerAccountResponse.serializeBinaryToWriter(this, writer);
1475
+ return writer.getResultBuffer();
1476
+ };
1477
+
1478
+
1479
+ /**
1480
+ * Serializes the given message to binary data (in protobuf wire
1481
+ * format), writing to the given BinaryWriter.
1482
+ * @param {!proto.CreateGeneralLedgerAccountResponse} message
1483
+ * @param {!jspb.BinaryWriter} writer
1484
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1485
+ */
1486
+ proto.CreateGeneralLedgerAccountResponse.serializeBinaryToWriter = function(message, writer) {
1487
+ var f = undefined;
1488
+ f = message.getGeneralLedgerAccount();
1489
+ if (f != null) {
1490
+ writer.writeMessage(
1491
+ 1,
1492
+ f,
1493
+ proto.GeneralLedgerAccount.serializeBinaryToWriter
1494
+ );
1495
+ }
1496
+ f = message.getMeta();
1497
+ if (f != null) {
1498
+ writer.writeMessage(
1499
+ 2,
1500
+ f,
1501
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1502
+ );
1503
+ }
1504
+ };
1505
+
1506
+
1507
+ /**
1508
+ * optional GeneralLedgerAccount general_ledger_account = 1;
1509
+ * @return {?proto.GeneralLedgerAccount}
1510
+ */
1511
+ proto.CreateGeneralLedgerAccountResponse.prototype.getGeneralLedgerAccount = function() {
1512
+ return /** @type{?proto.GeneralLedgerAccount} */ (
1513
+ jspb.Message.getWrapperField(this, proto.GeneralLedgerAccount, 1));
1514
+ };
1515
+
1516
+
1517
+ /**
1518
+ * @param {?proto.GeneralLedgerAccount|undefined} value
1519
+ * @return {!proto.CreateGeneralLedgerAccountResponse} returns this
1520
+ */
1521
+ proto.CreateGeneralLedgerAccountResponse.prototype.setGeneralLedgerAccount = function(value) {
1522
+ return jspb.Message.setWrapperField(this, 1, value);
1523
+ };
1524
+
1525
+
1526
+ /**
1527
+ * Clears the message field making it undefined.
1528
+ * @return {!proto.CreateGeneralLedgerAccountResponse} returns this
1529
+ */
1530
+ proto.CreateGeneralLedgerAccountResponse.prototype.clearGeneralLedgerAccount = function() {
1531
+ return this.setGeneralLedgerAccount(undefined);
1532
+ };
1533
+
1534
+
1535
+ /**
1536
+ * Returns whether this field is set.
1537
+ * @return {boolean}
1538
+ */
1539
+ proto.CreateGeneralLedgerAccountResponse.prototype.hasGeneralLedgerAccount = function() {
1540
+ return jspb.Message.getField(this, 1) != null;
1541
+ };
1542
+
1543
+
1544
+ /**
1545
+ * optional prisca.v1.global.meta.Meta meta = 2;
1546
+ * @return {?proto.prisca.v1.global.meta.Meta}
1547
+ */
1548
+ proto.CreateGeneralLedgerAccountResponse.prototype.getMeta = function() {
1549
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1550
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1551
+ };
1552
+
1553
+
1554
+ /**
1555
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1556
+ * @return {!proto.CreateGeneralLedgerAccountResponse} returns this
1557
+ */
1558
+ proto.CreateGeneralLedgerAccountResponse.prototype.setMeta = function(value) {
1559
+ return jspb.Message.setWrapperField(this, 2, value);
1560
+ };
1561
+
1562
+
1563
+ /**
1564
+ * Clears the message field making it undefined.
1565
+ * @return {!proto.CreateGeneralLedgerAccountResponse} returns this
1566
+ */
1567
+ proto.CreateGeneralLedgerAccountResponse.prototype.clearMeta = function() {
1568
+ return this.setMeta(undefined);
1569
+ };
1570
+
1571
+
1572
+ /**
1573
+ * Returns whether this field is set.
1574
+ * @return {boolean}
1575
+ */
1576
+ proto.CreateGeneralLedgerAccountResponse.prototype.hasMeta = function() {
1577
+ return jspb.Message.getField(this, 2) != null;
1578
+ };
1579
+
1580
+
1581
+
1582
+
1583
+
1584
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1585
+ /**
1586
+ * Creates an object representation of this proto.
1587
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1588
+ * Optional fields that are not set will be set to undefined.
1589
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1590
+ * For the list of reserved names please see:
1591
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1592
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1593
+ * JSPB instance for transitional soy proto support:
1594
+ * http://goto/soy-param-migration
1595
+ * @return {!Object}
1596
+ */
1597
+ proto.UpdateGeneralLedgerAccountRequest.prototype.toObject = function(opt_includeInstance) {
1598
+ return proto.UpdateGeneralLedgerAccountRequest.toObject(opt_includeInstance, this);
1599
+ };
1600
+
1601
+
1602
+ /**
1603
+ * Static version of the {@see toObject} method.
1604
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1605
+ * the JSPB instance for transitional soy proto support:
1606
+ * http://goto/soy-param-migration
1607
+ * @param {!proto.UpdateGeneralLedgerAccountRequest} msg The msg instance to transform.
1608
+ * @return {!Object}
1609
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1610
+ */
1611
+ proto.UpdateGeneralLedgerAccountRequest.toObject = function(includeInstance, msg) {
1612
+ var f, obj = {
1613
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1614
+ baseGeneralLedgerAccount: (f = msg.getBaseGeneralLedgerAccount()) && proto.BaseGeneralLedgerAccount.toObject(includeInstance, f)
1615
+ };
1616
+
1617
+ if (includeInstance) {
1618
+ obj.$jspbMessageInstance = msg;
1619
+ }
1620
+ return obj;
1621
+ };
1622
+ }
1623
+
1624
+
1625
+ /**
1626
+ * Deserializes binary data (in protobuf wire format).
1627
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1628
+ * @return {!proto.UpdateGeneralLedgerAccountRequest}
1629
+ */
1630
+ proto.UpdateGeneralLedgerAccountRequest.deserializeBinary = function(bytes) {
1631
+ var reader = new jspb.BinaryReader(bytes);
1632
+ var msg = new proto.UpdateGeneralLedgerAccountRequest;
1633
+ return proto.UpdateGeneralLedgerAccountRequest.deserializeBinaryFromReader(msg, reader);
1634
+ };
1635
+
1636
+
1637
+ /**
1638
+ * Deserializes binary data (in protobuf wire format) from the
1639
+ * given reader into the given message object.
1640
+ * @param {!proto.UpdateGeneralLedgerAccountRequest} msg The message object to deserialize into.
1641
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1642
+ * @return {!proto.UpdateGeneralLedgerAccountRequest}
1643
+ */
1644
+ proto.UpdateGeneralLedgerAccountRequest.deserializeBinaryFromReader = function(msg, reader) {
1645
+ while (reader.nextField()) {
1646
+ if (reader.isEndGroup()) {
1647
+ break;
1648
+ }
1649
+ var field = reader.getFieldNumber();
1650
+ switch (field) {
1651
+ case 1:
1652
+ var value = /** @type {string} */ (reader.readString());
1653
+ msg.setReferencesId(value);
1654
+ break;
1655
+ case 2:
1656
+ var value = new proto.BaseGeneralLedgerAccount;
1657
+ reader.readMessage(value,proto.BaseGeneralLedgerAccount.deserializeBinaryFromReader);
1658
+ msg.setBaseGeneralLedgerAccount(value);
1659
+ break;
1660
+ default:
1661
+ reader.skipField();
1662
+ break;
1663
+ }
1664
+ }
1665
+ return msg;
1666
+ };
1667
+
1668
+
1669
+ /**
1670
+ * Serializes the message to binary data (in protobuf wire format).
1671
+ * @return {!Uint8Array}
1672
+ */
1673
+ proto.UpdateGeneralLedgerAccountRequest.prototype.serializeBinary = function() {
1674
+ var writer = new jspb.BinaryWriter();
1675
+ proto.UpdateGeneralLedgerAccountRequest.serializeBinaryToWriter(this, writer);
1676
+ return writer.getResultBuffer();
1677
+ };
1678
+
1679
+
1680
+ /**
1681
+ * Serializes the given message to binary data (in protobuf wire
1682
+ * format), writing to the given BinaryWriter.
1683
+ * @param {!proto.UpdateGeneralLedgerAccountRequest} message
1684
+ * @param {!jspb.BinaryWriter} writer
1685
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1686
+ */
1687
+ proto.UpdateGeneralLedgerAccountRequest.serializeBinaryToWriter = function(message, writer) {
1688
+ var f = undefined;
1689
+ f = message.getReferencesId();
1690
+ if (f.length > 0) {
1691
+ writer.writeString(
1692
+ 1,
1693
+ f
1694
+ );
1695
+ }
1696
+ f = message.getBaseGeneralLedgerAccount();
1697
+ if (f != null) {
1698
+ writer.writeMessage(
1699
+ 2,
1700
+ f,
1701
+ proto.BaseGeneralLedgerAccount.serializeBinaryToWriter
1702
+ );
1703
+ }
1704
+ };
1705
+
1706
+
1707
+ /**
1708
+ * optional string references_id = 1;
1709
+ * @return {string}
1710
+ */
1711
+ proto.UpdateGeneralLedgerAccountRequest.prototype.getReferencesId = function() {
1712
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1713
+ };
1714
+
1715
+
1716
+ /**
1717
+ * @param {string} value
1718
+ * @return {!proto.UpdateGeneralLedgerAccountRequest} returns this
1719
+ */
1720
+ proto.UpdateGeneralLedgerAccountRequest.prototype.setReferencesId = function(value) {
1721
+ return jspb.Message.setProto3StringField(this, 1, value);
1722
+ };
1723
+
1724
+
1725
+ /**
1726
+ * optional BaseGeneralLedgerAccount base_general_ledger_account = 2;
1727
+ * @return {?proto.BaseGeneralLedgerAccount}
1728
+ */
1729
+ proto.UpdateGeneralLedgerAccountRequest.prototype.getBaseGeneralLedgerAccount = function() {
1730
+ return /** @type{?proto.BaseGeneralLedgerAccount} */ (
1731
+ jspb.Message.getWrapperField(this, proto.BaseGeneralLedgerAccount, 2));
1732
+ };
1733
+
1734
+
1735
+ /**
1736
+ * @param {?proto.BaseGeneralLedgerAccount|undefined} value
1737
+ * @return {!proto.UpdateGeneralLedgerAccountRequest} returns this
1738
+ */
1739
+ proto.UpdateGeneralLedgerAccountRequest.prototype.setBaseGeneralLedgerAccount = function(value) {
1740
+ return jspb.Message.setWrapperField(this, 2, value);
1741
+ };
1742
+
1743
+
1744
+ /**
1745
+ * Clears the message field making it undefined.
1746
+ * @return {!proto.UpdateGeneralLedgerAccountRequest} returns this
1747
+ */
1748
+ proto.UpdateGeneralLedgerAccountRequest.prototype.clearBaseGeneralLedgerAccount = function() {
1749
+ return this.setBaseGeneralLedgerAccount(undefined);
1750
+ };
1751
+
1752
+
1753
+ /**
1754
+ * Returns whether this field is set.
1755
+ * @return {boolean}
1756
+ */
1757
+ proto.UpdateGeneralLedgerAccountRequest.prototype.hasBaseGeneralLedgerAccount = function() {
1758
+ return jspb.Message.getField(this, 2) != null;
1759
+ };
1760
+
1761
+
1762
+
1763
+
1764
+
1765
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1766
+ /**
1767
+ * Creates an object representation of this proto.
1768
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1769
+ * Optional fields that are not set will be set to undefined.
1770
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1771
+ * For the list of reserved names please see:
1772
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1773
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1774
+ * JSPB instance for transitional soy proto support:
1775
+ * http://goto/soy-param-migration
1776
+ * @return {!Object}
1777
+ */
1778
+ proto.UpdateGeneralLedgerAccountResponse.prototype.toObject = function(opt_includeInstance) {
1779
+ return proto.UpdateGeneralLedgerAccountResponse.toObject(opt_includeInstance, this);
1780
+ };
1781
+
1782
+
1783
+ /**
1784
+ * Static version of the {@see toObject} method.
1785
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1786
+ * the JSPB instance for transitional soy proto support:
1787
+ * http://goto/soy-param-migration
1788
+ * @param {!proto.UpdateGeneralLedgerAccountResponse} msg The msg instance to transform.
1789
+ * @return {!Object}
1790
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1791
+ */
1792
+ proto.UpdateGeneralLedgerAccountResponse.toObject = function(includeInstance, msg) {
1793
+ var f, obj = {
1794
+ generalLedgerAccount: (f = msg.getGeneralLedgerAccount()) && proto.GeneralLedgerAccount.toObject(includeInstance, f),
1795
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1796
+ };
1797
+
1798
+ if (includeInstance) {
1799
+ obj.$jspbMessageInstance = msg;
1800
+ }
1801
+ return obj;
1802
+ };
1803
+ }
1804
+
1805
+
1806
+ /**
1807
+ * Deserializes binary data (in protobuf wire format).
1808
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1809
+ * @return {!proto.UpdateGeneralLedgerAccountResponse}
1810
+ */
1811
+ proto.UpdateGeneralLedgerAccountResponse.deserializeBinary = function(bytes) {
1812
+ var reader = new jspb.BinaryReader(bytes);
1813
+ var msg = new proto.UpdateGeneralLedgerAccountResponse;
1814
+ return proto.UpdateGeneralLedgerAccountResponse.deserializeBinaryFromReader(msg, reader);
1815
+ };
1816
+
1817
+
1818
+ /**
1819
+ * Deserializes binary data (in protobuf wire format) from the
1820
+ * given reader into the given message object.
1821
+ * @param {!proto.UpdateGeneralLedgerAccountResponse} msg The message object to deserialize into.
1822
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1823
+ * @return {!proto.UpdateGeneralLedgerAccountResponse}
1824
+ */
1825
+ proto.UpdateGeneralLedgerAccountResponse.deserializeBinaryFromReader = function(msg, reader) {
1826
+ while (reader.nextField()) {
1827
+ if (reader.isEndGroup()) {
1828
+ break;
1829
+ }
1830
+ var field = reader.getFieldNumber();
1831
+ switch (field) {
1832
+ case 1:
1833
+ var value = new proto.GeneralLedgerAccount;
1834
+ reader.readMessage(value,proto.GeneralLedgerAccount.deserializeBinaryFromReader);
1835
+ msg.setGeneralLedgerAccount(value);
1836
+ break;
1837
+ case 2:
1838
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1839
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1840
+ msg.setMeta(value);
1841
+ break;
1842
+ default:
1843
+ reader.skipField();
1844
+ break;
1845
+ }
1846
+ }
1847
+ return msg;
1848
+ };
1849
+
1850
+
1851
+ /**
1852
+ * Serializes the message to binary data (in protobuf wire format).
1853
+ * @return {!Uint8Array}
1854
+ */
1855
+ proto.UpdateGeneralLedgerAccountResponse.prototype.serializeBinary = function() {
1856
+ var writer = new jspb.BinaryWriter();
1857
+ proto.UpdateGeneralLedgerAccountResponse.serializeBinaryToWriter(this, writer);
1858
+ return writer.getResultBuffer();
1859
+ };
1860
+
1861
+
1862
+ /**
1863
+ * Serializes the given message to binary data (in protobuf wire
1864
+ * format), writing to the given BinaryWriter.
1865
+ * @param {!proto.UpdateGeneralLedgerAccountResponse} message
1866
+ * @param {!jspb.BinaryWriter} writer
1867
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1868
+ */
1869
+ proto.UpdateGeneralLedgerAccountResponse.serializeBinaryToWriter = function(message, writer) {
1870
+ var f = undefined;
1871
+ f = message.getGeneralLedgerAccount();
1872
+ if (f != null) {
1873
+ writer.writeMessage(
1874
+ 1,
1875
+ f,
1876
+ proto.GeneralLedgerAccount.serializeBinaryToWriter
1877
+ );
1878
+ }
1879
+ f = message.getMeta();
1880
+ if (f != null) {
1881
+ writer.writeMessage(
1882
+ 2,
1883
+ f,
1884
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1885
+ );
1886
+ }
1887
+ };
1888
+
1889
+
1890
+ /**
1891
+ * optional GeneralLedgerAccount general_ledger_account = 1;
1892
+ * @return {?proto.GeneralLedgerAccount}
1893
+ */
1894
+ proto.UpdateGeneralLedgerAccountResponse.prototype.getGeneralLedgerAccount = function() {
1895
+ return /** @type{?proto.GeneralLedgerAccount} */ (
1896
+ jspb.Message.getWrapperField(this, proto.GeneralLedgerAccount, 1));
1897
+ };
1898
+
1899
+
1900
+ /**
1901
+ * @param {?proto.GeneralLedgerAccount|undefined} value
1902
+ * @return {!proto.UpdateGeneralLedgerAccountResponse} returns this
1903
+ */
1904
+ proto.UpdateGeneralLedgerAccountResponse.prototype.setGeneralLedgerAccount = function(value) {
1905
+ return jspb.Message.setWrapperField(this, 1, value);
1906
+ };
1907
+
1908
+
1909
+ /**
1910
+ * Clears the message field making it undefined.
1911
+ * @return {!proto.UpdateGeneralLedgerAccountResponse} returns this
1912
+ */
1913
+ proto.UpdateGeneralLedgerAccountResponse.prototype.clearGeneralLedgerAccount = function() {
1914
+ return this.setGeneralLedgerAccount(undefined);
1915
+ };
1916
+
1917
+
1918
+ /**
1919
+ * Returns whether this field is set.
1920
+ * @return {boolean}
1921
+ */
1922
+ proto.UpdateGeneralLedgerAccountResponse.prototype.hasGeneralLedgerAccount = function() {
1923
+ return jspb.Message.getField(this, 1) != null;
1924
+ };
1925
+
1926
+
1927
+ /**
1928
+ * optional prisca.v1.global.meta.Meta meta = 2;
1929
+ * @return {?proto.prisca.v1.global.meta.Meta}
1930
+ */
1931
+ proto.UpdateGeneralLedgerAccountResponse.prototype.getMeta = function() {
1932
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1933
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1934
+ };
1935
+
1936
+
1937
+ /**
1938
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1939
+ * @return {!proto.UpdateGeneralLedgerAccountResponse} returns this
1940
+ */
1941
+ proto.UpdateGeneralLedgerAccountResponse.prototype.setMeta = function(value) {
1942
+ return jspb.Message.setWrapperField(this, 2, value);
1943
+ };
1944
+
1945
+
1946
+ /**
1947
+ * Clears the message field making it undefined.
1948
+ * @return {!proto.UpdateGeneralLedgerAccountResponse} returns this
1949
+ */
1950
+ proto.UpdateGeneralLedgerAccountResponse.prototype.clearMeta = function() {
1951
+ return this.setMeta(undefined);
1952
+ };
1953
+
1954
+
1955
+ /**
1956
+ * Returns whether this field is set.
1957
+ * @return {boolean}
1958
+ */
1959
+ proto.UpdateGeneralLedgerAccountResponse.prototype.hasMeta = function() {
1960
+ return jspb.Message.getField(this, 2) != null;
1961
+ };
1962
+
1963
+
1964
+
1965
+
1966
+
1967
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1968
+ /**
1969
+ * Creates an object representation of this proto.
1970
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1971
+ * Optional fields that are not set will be set to undefined.
1972
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1973
+ * For the list of reserved names please see:
1974
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1975
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1976
+ * JSPB instance for transitional soy proto support:
1977
+ * http://goto/soy-param-migration
1978
+ * @return {!Object}
1979
+ */
1980
+ proto.GetGeneralLedgerAccountByIdRequest.prototype.toObject = function(opt_includeInstance) {
1981
+ return proto.GetGeneralLedgerAccountByIdRequest.toObject(opt_includeInstance, this);
1982
+ };
1983
+
1984
+
1985
+ /**
1986
+ * Static version of the {@see toObject} method.
1987
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1988
+ * the JSPB instance for transitional soy proto support:
1989
+ * http://goto/soy-param-migration
1990
+ * @param {!proto.GetGeneralLedgerAccountByIdRequest} msg The msg instance to transform.
1991
+ * @return {!Object}
1992
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1993
+ */
1994
+ proto.GetGeneralLedgerAccountByIdRequest.toObject = function(includeInstance, msg) {
1995
+ var f, obj = {
1996
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
1997
+ };
1998
+
1999
+ if (includeInstance) {
2000
+ obj.$jspbMessageInstance = msg;
2001
+ }
2002
+ return obj;
2003
+ };
2004
+ }
2005
+
2006
+
2007
+ /**
2008
+ * Deserializes binary data (in protobuf wire format).
2009
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2010
+ * @return {!proto.GetGeneralLedgerAccountByIdRequest}
2011
+ */
2012
+ proto.GetGeneralLedgerAccountByIdRequest.deserializeBinary = function(bytes) {
2013
+ var reader = new jspb.BinaryReader(bytes);
2014
+ var msg = new proto.GetGeneralLedgerAccountByIdRequest;
2015
+ return proto.GetGeneralLedgerAccountByIdRequest.deserializeBinaryFromReader(msg, reader);
2016
+ };
2017
+
2018
+
2019
+ /**
2020
+ * Deserializes binary data (in protobuf wire format) from the
2021
+ * given reader into the given message object.
2022
+ * @param {!proto.GetGeneralLedgerAccountByIdRequest} msg The message object to deserialize into.
2023
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2024
+ * @return {!proto.GetGeneralLedgerAccountByIdRequest}
2025
+ */
2026
+ proto.GetGeneralLedgerAccountByIdRequest.deserializeBinaryFromReader = function(msg, reader) {
2027
+ while (reader.nextField()) {
2028
+ if (reader.isEndGroup()) {
2029
+ break;
2030
+ }
2031
+ var field = reader.getFieldNumber();
2032
+ switch (field) {
2033
+ case 1:
2034
+ var value = /** @type {string} */ (reader.readString());
2035
+ msg.setReferencesId(value);
2036
+ break;
2037
+ default:
2038
+ reader.skipField();
2039
+ break;
2040
+ }
2041
+ }
2042
+ return msg;
2043
+ };
2044
+
2045
+
2046
+ /**
2047
+ * Serializes the message to binary data (in protobuf wire format).
2048
+ * @return {!Uint8Array}
2049
+ */
2050
+ proto.GetGeneralLedgerAccountByIdRequest.prototype.serializeBinary = function() {
2051
+ var writer = new jspb.BinaryWriter();
2052
+ proto.GetGeneralLedgerAccountByIdRequest.serializeBinaryToWriter(this, writer);
2053
+ return writer.getResultBuffer();
2054
+ };
2055
+
2056
+
2057
+ /**
2058
+ * Serializes the given message to binary data (in protobuf wire
2059
+ * format), writing to the given BinaryWriter.
2060
+ * @param {!proto.GetGeneralLedgerAccountByIdRequest} message
2061
+ * @param {!jspb.BinaryWriter} writer
2062
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2063
+ */
2064
+ proto.GetGeneralLedgerAccountByIdRequest.serializeBinaryToWriter = function(message, writer) {
2065
+ var f = undefined;
2066
+ f = message.getReferencesId();
2067
+ if (f.length > 0) {
2068
+ writer.writeString(
2069
+ 1,
2070
+ f
2071
+ );
2072
+ }
2073
+ };
2074
+
2075
+
2076
+ /**
2077
+ * optional string references_id = 1;
2078
+ * @return {string}
2079
+ */
2080
+ proto.GetGeneralLedgerAccountByIdRequest.prototype.getReferencesId = function() {
2081
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2082
+ };
2083
+
2084
+
2085
+ /**
2086
+ * @param {string} value
2087
+ * @return {!proto.GetGeneralLedgerAccountByIdRequest} returns this
2088
+ */
2089
+ proto.GetGeneralLedgerAccountByIdRequest.prototype.setReferencesId = function(value) {
2090
+ return jspb.Message.setProto3StringField(this, 1, value);
2091
+ };
2092
+
2093
+
2094
+
2095
+
2096
+
2097
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2098
+ /**
2099
+ * Creates an object representation of this proto.
2100
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2101
+ * Optional fields that are not set will be set to undefined.
2102
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2103
+ * For the list of reserved names please see:
2104
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2105
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2106
+ * JSPB instance for transitional soy proto support:
2107
+ * http://goto/soy-param-migration
2108
+ * @return {!Object}
2109
+ */
2110
+ proto.GetGeneralLedgerAccountByIdResponse.prototype.toObject = function(opt_includeInstance) {
2111
+ return proto.GetGeneralLedgerAccountByIdResponse.toObject(opt_includeInstance, this);
2112
+ };
2113
+
2114
+
2115
+ /**
2116
+ * Static version of the {@see toObject} method.
2117
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2118
+ * the JSPB instance for transitional soy proto support:
2119
+ * http://goto/soy-param-migration
2120
+ * @param {!proto.GetGeneralLedgerAccountByIdResponse} msg The msg instance to transform.
2121
+ * @return {!Object}
2122
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2123
+ */
2124
+ proto.GetGeneralLedgerAccountByIdResponse.toObject = function(includeInstance, msg) {
2125
+ var f, obj = {
2126
+ generalLedgerAccount: (f = msg.getGeneralLedgerAccount()) && proto.GeneralLedgerAccount.toObject(includeInstance, f),
2127
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2128
+ };
2129
+
2130
+ if (includeInstance) {
2131
+ obj.$jspbMessageInstance = msg;
2132
+ }
2133
+ return obj;
2134
+ };
2135
+ }
2136
+
2137
+
2138
+ /**
2139
+ * Deserializes binary data (in protobuf wire format).
2140
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2141
+ * @return {!proto.GetGeneralLedgerAccountByIdResponse}
2142
+ */
2143
+ proto.GetGeneralLedgerAccountByIdResponse.deserializeBinary = function(bytes) {
2144
+ var reader = new jspb.BinaryReader(bytes);
2145
+ var msg = new proto.GetGeneralLedgerAccountByIdResponse;
2146
+ return proto.GetGeneralLedgerAccountByIdResponse.deserializeBinaryFromReader(msg, reader);
2147
+ };
2148
+
2149
+
2150
+ /**
2151
+ * Deserializes binary data (in protobuf wire format) from the
2152
+ * given reader into the given message object.
2153
+ * @param {!proto.GetGeneralLedgerAccountByIdResponse} msg The message object to deserialize into.
2154
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2155
+ * @return {!proto.GetGeneralLedgerAccountByIdResponse}
2156
+ */
2157
+ proto.GetGeneralLedgerAccountByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
2158
+ while (reader.nextField()) {
2159
+ if (reader.isEndGroup()) {
2160
+ break;
2161
+ }
2162
+ var field = reader.getFieldNumber();
2163
+ switch (field) {
2164
+ case 1:
2165
+ var value = new proto.GeneralLedgerAccount;
2166
+ reader.readMessage(value,proto.GeneralLedgerAccount.deserializeBinaryFromReader);
2167
+ msg.setGeneralLedgerAccount(value);
2168
+ break;
2169
+ case 2:
2170
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2171
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2172
+ msg.setMeta(value);
2173
+ break;
2174
+ default:
2175
+ reader.skipField();
2176
+ break;
2177
+ }
2178
+ }
2179
+ return msg;
2180
+ };
2181
+
2182
+
2183
+ /**
2184
+ * Serializes the message to binary data (in protobuf wire format).
2185
+ * @return {!Uint8Array}
2186
+ */
2187
+ proto.GetGeneralLedgerAccountByIdResponse.prototype.serializeBinary = function() {
2188
+ var writer = new jspb.BinaryWriter();
2189
+ proto.GetGeneralLedgerAccountByIdResponse.serializeBinaryToWriter(this, writer);
2190
+ return writer.getResultBuffer();
2191
+ };
2192
+
2193
+
2194
+ /**
2195
+ * Serializes the given message to binary data (in protobuf wire
2196
+ * format), writing to the given BinaryWriter.
2197
+ * @param {!proto.GetGeneralLedgerAccountByIdResponse} message
2198
+ * @param {!jspb.BinaryWriter} writer
2199
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2200
+ */
2201
+ proto.GetGeneralLedgerAccountByIdResponse.serializeBinaryToWriter = function(message, writer) {
2202
+ var f = undefined;
2203
+ f = message.getGeneralLedgerAccount();
2204
+ if (f != null) {
2205
+ writer.writeMessage(
2206
+ 1,
2207
+ f,
2208
+ proto.GeneralLedgerAccount.serializeBinaryToWriter
2209
+ );
2210
+ }
2211
+ f = message.getMeta();
2212
+ if (f != null) {
2213
+ writer.writeMessage(
2214
+ 2,
2215
+ f,
2216
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2217
+ );
2218
+ }
2219
+ };
2220
+
2221
+
2222
+ /**
2223
+ * optional GeneralLedgerAccount general_ledger_account = 1;
2224
+ * @return {?proto.GeneralLedgerAccount}
2225
+ */
2226
+ proto.GetGeneralLedgerAccountByIdResponse.prototype.getGeneralLedgerAccount = function() {
2227
+ return /** @type{?proto.GeneralLedgerAccount} */ (
2228
+ jspb.Message.getWrapperField(this, proto.GeneralLedgerAccount, 1));
2229
+ };
2230
+
2231
+
2232
+ /**
2233
+ * @param {?proto.GeneralLedgerAccount|undefined} value
2234
+ * @return {!proto.GetGeneralLedgerAccountByIdResponse} returns this
2235
+ */
2236
+ proto.GetGeneralLedgerAccountByIdResponse.prototype.setGeneralLedgerAccount = function(value) {
2237
+ return jspb.Message.setWrapperField(this, 1, value);
2238
+ };
2239
+
2240
+
2241
+ /**
2242
+ * Clears the message field making it undefined.
2243
+ * @return {!proto.GetGeneralLedgerAccountByIdResponse} returns this
2244
+ */
2245
+ proto.GetGeneralLedgerAccountByIdResponse.prototype.clearGeneralLedgerAccount = function() {
2246
+ return this.setGeneralLedgerAccount(undefined);
2247
+ };
2248
+
2249
+
2250
+ /**
2251
+ * Returns whether this field is set.
2252
+ * @return {boolean}
2253
+ */
2254
+ proto.GetGeneralLedgerAccountByIdResponse.prototype.hasGeneralLedgerAccount = function() {
2255
+ return jspb.Message.getField(this, 1) != null;
2256
+ };
2257
+
2258
+
2259
+ /**
2260
+ * optional prisca.v1.global.meta.Meta meta = 2;
2261
+ * @return {?proto.prisca.v1.global.meta.Meta}
2262
+ */
2263
+ proto.GetGeneralLedgerAccountByIdResponse.prototype.getMeta = function() {
2264
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2265
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2266
+ };
2267
+
2268
+
2269
+ /**
2270
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2271
+ * @return {!proto.GetGeneralLedgerAccountByIdResponse} returns this
2272
+ */
2273
+ proto.GetGeneralLedgerAccountByIdResponse.prototype.setMeta = function(value) {
2274
+ return jspb.Message.setWrapperField(this, 2, value);
2275
+ };
2276
+
2277
+
2278
+ /**
2279
+ * Clears the message field making it undefined.
2280
+ * @return {!proto.GetGeneralLedgerAccountByIdResponse} returns this
2281
+ */
2282
+ proto.GetGeneralLedgerAccountByIdResponse.prototype.clearMeta = function() {
2283
+ return this.setMeta(undefined);
2284
+ };
2285
+
2286
+
2287
+ /**
2288
+ * Returns whether this field is set.
2289
+ * @return {boolean}
2290
+ */
2291
+ proto.GetGeneralLedgerAccountByIdResponse.prototype.hasMeta = function() {
2292
+ return jspb.Message.getField(this, 2) != null;
2293
+ };
2294
+
2295
+
2296
+
2297
+
2298
+
2299
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2300
+ /**
2301
+ * Creates an object representation of this proto.
2302
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2303
+ * Optional fields that are not set will be set to undefined.
2304
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2305
+ * For the list of reserved names please see:
2306
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2307
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2308
+ * JSPB instance for transitional soy proto support:
2309
+ * http://goto/soy-param-migration
2310
+ * @return {!Object}
2311
+ */
2312
+ proto.GetListGeneralLedgerAccountRequest.prototype.toObject = function(opt_includeInstance) {
2313
+ return proto.GetListGeneralLedgerAccountRequest.toObject(opt_includeInstance, this);
2314
+ };
2315
+
2316
+
2317
+ /**
2318
+ * Static version of the {@see toObject} method.
2319
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2320
+ * the JSPB instance for transitional soy proto support:
2321
+ * http://goto/soy-param-migration
2322
+ * @param {!proto.GetListGeneralLedgerAccountRequest} msg The msg instance to transform.
2323
+ * @return {!Object}
2324
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2325
+ */
2326
+ proto.GetListGeneralLedgerAccountRequest.toObject = function(includeInstance, msg) {
2327
+ var f, obj = {
2328
+ pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
2329
+ query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
2330
+ };
2331
+
2332
+ if (includeInstance) {
2333
+ obj.$jspbMessageInstance = msg;
2334
+ }
2335
+ return obj;
2336
+ };
2337
+ }
2338
+
2339
+
2340
+ /**
2341
+ * Deserializes binary data (in protobuf wire format).
2342
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2343
+ * @return {!proto.GetListGeneralLedgerAccountRequest}
2344
+ */
2345
+ proto.GetListGeneralLedgerAccountRequest.deserializeBinary = function(bytes) {
2346
+ var reader = new jspb.BinaryReader(bytes);
2347
+ var msg = new proto.GetListGeneralLedgerAccountRequest;
2348
+ return proto.GetListGeneralLedgerAccountRequest.deserializeBinaryFromReader(msg, reader);
2349
+ };
2350
+
2351
+
2352
+ /**
2353
+ * Deserializes binary data (in protobuf wire format) from the
2354
+ * given reader into the given message object.
2355
+ * @param {!proto.GetListGeneralLedgerAccountRequest} msg The message object to deserialize into.
2356
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2357
+ * @return {!proto.GetListGeneralLedgerAccountRequest}
2358
+ */
2359
+ proto.GetListGeneralLedgerAccountRequest.deserializeBinaryFromReader = function(msg, reader) {
2360
+ while (reader.nextField()) {
2361
+ if (reader.isEndGroup()) {
2362
+ break;
2363
+ }
2364
+ var field = reader.getFieldNumber();
2365
+ switch (field) {
2366
+ case 1:
2367
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
2368
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
2369
+ msg.setPagination(value);
2370
+ break;
2371
+ case 2:
2372
+ var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
2373
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
2374
+ msg.setQuery(value);
2375
+ break;
2376
+ default:
2377
+ reader.skipField();
2378
+ break;
2379
+ }
2380
+ }
2381
+ return msg;
2382
+ };
2383
+
2384
+
2385
+ /**
2386
+ * Serializes the message to binary data (in protobuf wire format).
2387
+ * @return {!Uint8Array}
2388
+ */
2389
+ proto.GetListGeneralLedgerAccountRequest.prototype.serializeBinary = function() {
2390
+ var writer = new jspb.BinaryWriter();
2391
+ proto.GetListGeneralLedgerAccountRequest.serializeBinaryToWriter(this, writer);
2392
+ return writer.getResultBuffer();
2393
+ };
2394
+
2395
+
2396
+ /**
2397
+ * Serializes the given message to binary data (in protobuf wire
2398
+ * format), writing to the given BinaryWriter.
2399
+ * @param {!proto.GetListGeneralLedgerAccountRequest} message
2400
+ * @param {!jspb.BinaryWriter} writer
2401
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2402
+ */
2403
+ proto.GetListGeneralLedgerAccountRequest.serializeBinaryToWriter = function(message, writer) {
2404
+ var f = undefined;
2405
+ f = message.getPagination();
2406
+ if (f != null) {
2407
+ writer.writeMessage(
2408
+ 1,
2409
+ f,
2410
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
2411
+ );
2412
+ }
2413
+ f = message.getQuery();
2414
+ if (f != null) {
2415
+ writer.writeMessage(
2416
+ 2,
2417
+ f,
2418
+ prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
2419
+ );
2420
+ }
2421
+ };
2422
+
2423
+
2424
+ /**
2425
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
2426
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
2427
+ */
2428
+ proto.GetListGeneralLedgerAccountRequest.prototype.getPagination = function() {
2429
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
2430
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
2431
+ };
2432
+
2433
+
2434
+ /**
2435
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
2436
+ * @return {!proto.GetListGeneralLedgerAccountRequest} returns this
2437
+ */
2438
+ proto.GetListGeneralLedgerAccountRequest.prototype.setPagination = function(value) {
2439
+ return jspb.Message.setWrapperField(this, 1, value);
2440
+ };
2441
+
2442
+
2443
+ /**
2444
+ * Clears the message field making it undefined.
2445
+ * @return {!proto.GetListGeneralLedgerAccountRequest} returns this
2446
+ */
2447
+ proto.GetListGeneralLedgerAccountRequest.prototype.clearPagination = function() {
2448
+ return this.setPagination(undefined);
2449
+ };
2450
+
2451
+
2452
+ /**
2453
+ * Returns whether this field is set.
2454
+ * @return {boolean}
2455
+ */
2456
+ proto.GetListGeneralLedgerAccountRequest.prototype.hasPagination = function() {
2457
+ return jspb.Message.getField(this, 1) != null;
2458
+ };
2459
+
2460
+
2461
+ /**
2462
+ * optional prisca.v1.global.meta.FilterRequest query = 2;
2463
+ * @return {?proto.prisca.v1.global.meta.FilterRequest}
2464
+ */
2465
+ proto.GetListGeneralLedgerAccountRequest.prototype.getQuery = function() {
2466
+ return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
2467
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
2468
+ };
2469
+
2470
+
2471
+ /**
2472
+ * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
2473
+ * @return {!proto.GetListGeneralLedgerAccountRequest} returns this
2474
+ */
2475
+ proto.GetListGeneralLedgerAccountRequest.prototype.setQuery = function(value) {
2476
+ return jspb.Message.setWrapperField(this, 2, value);
2477
+ };
2478
+
2479
+
2480
+ /**
2481
+ * Clears the message field making it undefined.
2482
+ * @return {!proto.GetListGeneralLedgerAccountRequest} returns this
2483
+ */
2484
+ proto.GetListGeneralLedgerAccountRequest.prototype.clearQuery = function() {
2485
+ return this.setQuery(undefined);
2486
+ };
2487
+
2488
+
2489
+ /**
2490
+ * Returns whether this field is set.
2491
+ * @return {boolean}
2492
+ */
2493
+ proto.GetListGeneralLedgerAccountRequest.prototype.hasQuery = function() {
2494
+ return jspb.Message.getField(this, 2) != null;
2495
+ };
2496
+
2497
+
2498
+
2499
+ /**
2500
+ * List of repeated fields within this message type.
2501
+ * @private {!Array<number>}
2502
+ * @const
2503
+ */
2504
+ proto.GetListGeneralLedgerAccountResponse.repeatedFields_ = [1];
2505
+
2506
+
2507
+
2508
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2509
+ /**
2510
+ * Creates an object representation of this proto.
2511
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2512
+ * Optional fields that are not set will be set to undefined.
2513
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2514
+ * For the list of reserved names please see:
2515
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2516
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2517
+ * JSPB instance for transitional soy proto support:
2518
+ * http://goto/soy-param-migration
2519
+ * @return {!Object}
2520
+ */
2521
+ proto.GetListGeneralLedgerAccountResponse.prototype.toObject = function(opt_includeInstance) {
2522
+ return proto.GetListGeneralLedgerAccountResponse.toObject(opt_includeInstance, this);
2523
+ };
2524
+
2525
+
2526
+ /**
2527
+ * Static version of the {@see toObject} method.
2528
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2529
+ * the JSPB instance for transitional soy proto support:
2530
+ * http://goto/soy-param-migration
2531
+ * @param {!proto.GetListGeneralLedgerAccountResponse} msg The msg instance to transform.
2532
+ * @return {!Object}
2533
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2534
+ */
2535
+ proto.GetListGeneralLedgerAccountResponse.toObject = function(includeInstance, msg) {
2536
+ var f, obj = {
2537
+ generalLedgerAccountsList: jspb.Message.toObjectList(msg.getGeneralLedgerAccountsList(),
2538
+ proto.GeneralLedgerAccount.toObject, includeInstance),
2539
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2540
+ };
2541
+
2542
+ if (includeInstance) {
2543
+ obj.$jspbMessageInstance = msg;
2544
+ }
2545
+ return obj;
2546
+ };
2547
+ }
2548
+
2549
+
2550
+ /**
2551
+ * Deserializes binary data (in protobuf wire format).
2552
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2553
+ * @return {!proto.GetListGeneralLedgerAccountResponse}
2554
+ */
2555
+ proto.GetListGeneralLedgerAccountResponse.deserializeBinary = function(bytes) {
2556
+ var reader = new jspb.BinaryReader(bytes);
2557
+ var msg = new proto.GetListGeneralLedgerAccountResponse;
2558
+ return proto.GetListGeneralLedgerAccountResponse.deserializeBinaryFromReader(msg, reader);
2559
+ };
2560
+
2561
+
2562
+ /**
2563
+ * Deserializes binary data (in protobuf wire format) from the
2564
+ * given reader into the given message object.
2565
+ * @param {!proto.GetListGeneralLedgerAccountResponse} msg The message object to deserialize into.
2566
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2567
+ * @return {!proto.GetListGeneralLedgerAccountResponse}
2568
+ */
2569
+ proto.GetListGeneralLedgerAccountResponse.deserializeBinaryFromReader = function(msg, reader) {
2570
+ while (reader.nextField()) {
2571
+ if (reader.isEndGroup()) {
2572
+ break;
2573
+ }
2574
+ var field = reader.getFieldNumber();
2575
+ switch (field) {
2576
+ case 1:
2577
+ var value = new proto.GeneralLedgerAccount;
2578
+ reader.readMessage(value,proto.GeneralLedgerAccount.deserializeBinaryFromReader);
2579
+ msg.addGeneralLedgerAccounts(value);
2580
+ break;
2581
+ case 2:
2582
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2583
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2584
+ msg.setMeta(value);
2585
+ break;
2586
+ default:
2587
+ reader.skipField();
2588
+ break;
2589
+ }
2590
+ }
2591
+ return msg;
2592
+ };
2593
+
2594
+
2595
+ /**
2596
+ * Serializes the message to binary data (in protobuf wire format).
2597
+ * @return {!Uint8Array}
2598
+ */
2599
+ proto.GetListGeneralLedgerAccountResponse.prototype.serializeBinary = function() {
2600
+ var writer = new jspb.BinaryWriter();
2601
+ proto.GetListGeneralLedgerAccountResponse.serializeBinaryToWriter(this, writer);
2602
+ return writer.getResultBuffer();
2603
+ };
2604
+
2605
+
2606
+ /**
2607
+ * Serializes the given message to binary data (in protobuf wire
2608
+ * format), writing to the given BinaryWriter.
2609
+ * @param {!proto.GetListGeneralLedgerAccountResponse} message
2610
+ * @param {!jspb.BinaryWriter} writer
2611
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2612
+ */
2613
+ proto.GetListGeneralLedgerAccountResponse.serializeBinaryToWriter = function(message, writer) {
2614
+ var f = undefined;
2615
+ f = message.getGeneralLedgerAccountsList();
2616
+ if (f.length > 0) {
2617
+ writer.writeRepeatedMessage(
2618
+ 1,
2619
+ f,
2620
+ proto.GeneralLedgerAccount.serializeBinaryToWriter
2621
+ );
2622
+ }
2623
+ f = message.getMeta();
2624
+ if (f != null) {
2625
+ writer.writeMessage(
2626
+ 2,
2627
+ f,
2628
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2629
+ );
2630
+ }
2631
+ };
2632
+
2633
+
2634
+ /**
2635
+ * repeated GeneralLedgerAccount general_ledger_accounts = 1;
2636
+ * @return {!Array<!proto.GeneralLedgerAccount>}
2637
+ */
2638
+ proto.GetListGeneralLedgerAccountResponse.prototype.getGeneralLedgerAccountsList = function() {
2639
+ return /** @type{!Array<!proto.GeneralLedgerAccount>} */ (
2640
+ jspb.Message.getRepeatedWrapperField(this, proto.GeneralLedgerAccount, 1));
2641
+ };
2642
+
2643
+
2644
+ /**
2645
+ * @param {!Array<!proto.GeneralLedgerAccount>} value
2646
+ * @return {!proto.GetListGeneralLedgerAccountResponse} returns this
2647
+ */
2648
+ proto.GetListGeneralLedgerAccountResponse.prototype.setGeneralLedgerAccountsList = function(value) {
2649
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2650
+ };
2651
+
2652
+
2653
+ /**
2654
+ * @param {!proto.GeneralLedgerAccount=} opt_value
2655
+ * @param {number=} opt_index
2656
+ * @return {!proto.GeneralLedgerAccount}
2657
+ */
2658
+ proto.GetListGeneralLedgerAccountResponse.prototype.addGeneralLedgerAccounts = function(opt_value, opt_index) {
2659
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.GeneralLedgerAccount, opt_index);
2660
+ };
2661
+
2662
+
2663
+ /**
2664
+ * Clears the list making it empty but non-null.
2665
+ * @return {!proto.GetListGeneralLedgerAccountResponse} returns this
2666
+ */
2667
+ proto.GetListGeneralLedgerAccountResponse.prototype.clearGeneralLedgerAccountsList = function() {
2668
+ return this.setGeneralLedgerAccountsList([]);
2669
+ };
2670
+
2671
+
2672
+ /**
2673
+ * optional prisca.v1.global.meta.Meta meta = 2;
2674
+ * @return {?proto.prisca.v1.global.meta.Meta}
2675
+ */
2676
+ proto.GetListGeneralLedgerAccountResponse.prototype.getMeta = function() {
2677
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2678
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2679
+ };
2680
+
2681
+
2682
+ /**
2683
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2684
+ * @return {!proto.GetListGeneralLedgerAccountResponse} returns this
2685
+ */
2686
+ proto.GetListGeneralLedgerAccountResponse.prototype.setMeta = function(value) {
2687
+ return jspb.Message.setWrapperField(this, 2, value);
2688
+ };
2689
+
2690
+
2691
+ /**
2692
+ * Clears the message field making it undefined.
2693
+ * @return {!proto.GetListGeneralLedgerAccountResponse} returns this
2694
+ */
2695
+ proto.GetListGeneralLedgerAccountResponse.prototype.clearMeta = function() {
2696
+ return this.setMeta(undefined);
2697
+ };
2698
+
2699
+
2700
+ /**
2701
+ * Returns whether this field is set.
2702
+ * @return {boolean}
2703
+ */
2704
+ proto.GetListGeneralLedgerAccountResponse.prototype.hasMeta = function() {
2705
+ return jspb.Message.getField(this, 2) != null;
2706
+ };
2707
+
2708
+
2709
+
2710
+
2711
+
2712
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2713
+ /**
2714
+ * Creates an object representation of this proto.
2715
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2716
+ * Optional fields that are not set will be set to undefined.
2717
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2718
+ * For the list of reserved names please see:
2719
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2720
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2721
+ * JSPB instance for transitional soy proto support:
2722
+ * http://goto/soy-param-migration
2723
+ * @return {!Object}
2724
+ */
2725
+ proto.DeleteGeneralLedgerAccountRequest.prototype.toObject = function(opt_includeInstance) {
2726
+ return proto.DeleteGeneralLedgerAccountRequest.toObject(opt_includeInstance, this);
2727
+ };
2728
+
2729
+
2730
+ /**
2731
+ * Static version of the {@see toObject} method.
2732
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2733
+ * the JSPB instance for transitional soy proto support:
2734
+ * http://goto/soy-param-migration
2735
+ * @param {!proto.DeleteGeneralLedgerAccountRequest} msg The msg instance to transform.
2736
+ * @return {!Object}
2737
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2738
+ */
2739
+ proto.DeleteGeneralLedgerAccountRequest.toObject = function(includeInstance, msg) {
2740
+ var f, obj = {
2741
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
2742
+ };
2743
+
2744
+ if (includeInstance) {
2745
+ obj.$jspbMessageInstance = msg;
2746
+ }
2747
+ return obj;
2748
+ };
2749
+ }
2750
+
2751
+
2752
+ /**
2753
+ * Deserializes binary data (in protobuf wire format).
2754
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2755
+ * @return {!proto.DeleteGeneralLedgerAccountRequest}
2756
+ */
2757
+ proto.DeleteGeneralLedgerAccountRequest.deserializeBinary = function(bytes) {
2758
+ var reader = new jspb.BinaryReader(bytes);
2759
+ var msg = new proto.DeleteGeneralLedgerAccountRequest;
2760
+ return proto.DeleteGeneralLedgerAccountRequest.deserializeBinaryFromReader(msg, reader);
2761
+ };
2762
+
2763
+
2764
+ /**
2765
+ * Deserializes binary data (in protobuf wire format) from the
2766
+ * given reader into the given message object.
2767
+ * @param {!proto.DeleteGeneralLedgerAccountRequest} msg The message object to deserialize into.
2768
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2769
+ * @return {!proto.DeleteGeneralLedgerAccountRequest}
2770
+ */
2771
+ proto.DeleteGeneralLedgerAccountRequest.deserializeBinaryFromReader = function(msg, reader) {
2772
+ while (reader.nextField()) {
2773
+ if (reader.isEndGroup()) {
2774
+ break;
2775
+ }
2776
+ var field = reader.getFieldNumber();
2777
+ switch (field) {
2778
+ case 1:
2779
+ var value = /** @type {string} */ (reader.readString());
2780
+ msg.setReferencesId(value);
2781
+ break;
2782
+ default:
2783
+ reader.skipField();
2784
+ break;
2785
+ }
2786
+ }
2787
+ return msg;
2788
+ };
2789
+
2790
+
2791
+ /**
2792
+ * Serializes the message to binary data (in protobuf wire format).
2793
+ * @return {!Uint8Array}
2794
+ */
2795
+ proto.DeleteGeneralLedgerAccountRequest.prototype.serializeBinary = function() {
2796
+ var writer = new jspb.BinaryWriter();
2797
+ proto.DeleteGeneralLedgerAccountRequest.serializeBinaryToWriter(this, writer);
2798
+ return writer.getResultBuffer();
2799
+ };
2800
+
2801
+
2802
+ /**
2803
+ * Serializes the given message to binary data (in protobuf wire
2804
+ * format), writing to the given BinaryWriter.
2805
+ * @param {!proto.DeleteGeneralLedgerAccountRequest} message
2806
+ * @param {!jspb.BinaryWriter} writer
2807
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2808
+ */
2809
+ proto.DeleteGeneralLedgerAccountRequest.serializeBinaryToWriter = function(message, writer) {
2810
+ var f = undefined;
2811
+ f = message.getReferencesId();
2812
+ if (f.length > 0) {
2813
+ writer.writeString(
2814
+ 1,
2815
+ f
2816
+ );
2817
+ }
2818
+ };
2819
+
2820
+
2821
+ /**
2822
+ * optional string references_id = 1;
2823
+ * @return {string}
2824
+ */
2825
+ proto.DeleteGeneralLedgerAccountRequest.prototype.getReferencesId = function() {
2826
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2827
+ };
2828
+
2829
+
2830
+ /**
2831
+ * @param {string} value
2832
+ * @return {!proto.DeleteGeneralLedgerAccountRequest} returns this
2833
+ */
2834
+ proto.DeleteGeneralLedgerAccountRequest.prototype.setReferencesId = function(value) {
2835
+ return jspb.Message.setProto3StringField(this, 1, value);
2836
+ };
2837
+
2838
+
2839
+
2840
+
2841
+
2842
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2843
+ /**
2844
+ * Creates an object representation of this proto.
2845
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2846
+ * Optional fields that are not set will be set to undefined.
2847
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2848
+ * For the list of reserved names please see:
2849
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2850
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2851
+ * JSPB instance for transitional soy proto support:
2852
+ * http://goto/soy-param-migration
2853
+ * @return {!Object}
2854
+ */
2855
+ proto.DeleteGeneralLedgerAccountResponse.prototype.toObject = function(opt_includeInstance) {
2856
+ return proto.DeleteGeneralLedgerAccountResponse.toObject(opt_includeInstance, this);
2857
+ };
2858
+
2859
+
2860
+ /**
2861
+ * Static version of the {@see toObject} method.
2862
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2863
+ * the JSPB instance for transitional soy proto support:
2864
+ * http://goto/soy-param-migration
2865
+ * @param {!proto.DeleteGeneralLedgerAccountResponse} msg The msg instance to transform.
2866
+ * @return {!Object}
2867
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2868
+ */
2869
+ proto.DeleteGeneralLedgerAccountResponse.toObject = function(includeInstance, msg) {
2870
+ var f, obj = {
2871
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2872
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2873
+ };
2874
+
2875
+ if (includeInstance) {
2876
+ obj.$jspbMessageInstance = msg;
2877
+ }
2878
+ return obj;
2879
+ };
2880
+ }
2881
+
2882
+
2883
+ /**
2884
+ * Deserializes binary data (in protobuf wire format).
2885
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2886
+ * @return {!proto.DeleteGeneralLedgerAccountResponse}
2887
+ */
2888
+ proto.DeleteGeneralLedgerAccountResponse.deserializeBinary = function(bytes) {
2889
+ var reader = new jspb.BinaryReader(bytes);
2890
+ var msg = new proto.DeleteGeneralLedgerAccountResponse;
2891
+ return proto.DeleteGeneralLedgerAccountResponse.deserializeBinaryFromReader(msg, reader);
2892
+ };
2893
+
2894
+
2895
+ /**
2896
+ * Deserializes binary data (in protobuf wire format) from the
2897
+ * given reader into the given message object.
2898
+ * @param {!proto.DeleteGeneralLedgerAccountResponse} msg The message object to deserialize into.
2899
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2900
+ * @return {!proto.DeleteGeneralLedgerAccountResponse}
2901
+ */
2902
+ proto.DeleteGeneralLedgerAccountResponse.deserializeBinaryFromReader = function(msg, reader) {
2903
+ while (reader.nextField()) {
2904
+ if (reader.isEndGroup()) {
2905
+ break;
2906
+ }
2907
+ var field = reader.getFieldNumber();
2908
+ switch (field) {
2909
+ case 1:
2910
+ var value = /** @type {string} */ (reader.readString());
2911
+ msg.setReferencesId(value);
2912
+ break;
2913
+ case 2:
2914
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2915
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2916
+ msg.setMeta(value);
2917
+ break;
2918
+ default:
2919
+ reader.skipField();
2920
+ break;
2921
+ }
2922
+ }
2923
+ return msg;
2924
+ };
2925
+
2926
+
2927
+ /**
2928
+ * Serializes the message to binary data (in protobuf wire format).
2929
+ * @return {!Uint8Array}
2930
+ */
2931
+ proto.DeleteGeneralLedgerAccountResponse.prototype.serializeBinary = function() {
2932
+ var writer = new jspb.BinaryWriter();
2933
+ proto.DeleteGeneralLedgerAccountResponse.serializeBinaryToWriter(this, writer);
2934
+ return writer.getResultBuffer();
2935
+ };
2936
+
2937
+
2938
+ /**
2939
+ * Serializes the given message to binary data (in protobuf wire
2940
+ * format), writing to the given BinaryWriter.
2941
+ * @param {!proto.DeleteGeneralLedgerAccountResponse} message
2942
+ * @param {!jspb.BinaryWriter} writer
2943
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2944
+ */
2945
+ proto.DeleteGeneralLedgerAccountResponse.serializeBinaryToWriter = function(message, writer) {
2946
+ var f = undefined;
2947
+ f = message.getReferencesId();
2948
+ if (f.length > 0) {
2949
+ writer.writeString(
2950
+ 1,
2951
+ f
2952
+ );
2953
+ }
2954
+ f = message.getMeta();
2955
+ if (f != null) {
2956
+ writer.writeMessage(
2957
+ 2,
2958
+ f,
2959
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2960
+ );
2961
+ }
2962
+ };
2963
+
2964
+
2965
+ /**
2966
+ * optional string references_id = 1;
2967
+ * @return {string}
2968
+ */
2969
+ proto.DeleteGeneralLedgerAccountResponse.prototype.getReferencesId = function() {
2970
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2971
+ };
2972
+
2973
+
2974
+ /**
2975
+ * @param {string} value
2976
+ * @return {!proto.DeleteGeneralLedgerAccountResponse} returns this
2977
+ */
2978
+ proto.DeleteGeneralLedgerAccountResponse.prototype.setReferencesId = function(value) {
2979
+ return jspb.Message.setProto3StringField(this, 1, value);
2980
+ };
2981
+
2982
+
2983
+ /**
2984
+ * optional prisca.v1.global.meta.Meta meta = 2;
2985
+ * @return {?proto.prisca.v1.global.meta.Meta}
2986
+ */
2987
+ proto.DeleteGeneralLedgerAccountResponse.prototype.getMeta = function() {
2988
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2989
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2990
+ };
2991
+
2992
+
2993
+ /**
2994
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2995
+ * @return {!proto.DeleteGeneralLedgerAccountResponse} returns this
2996
+ */
2997
+ proto.DeleteGeneralLedgerAccountResponse.prototype.setMeta = function(value) {
2998
+ return jspb.Message.setWrapperField(this, 2, value);
2999
+ };
3000
+
3001
+
3002
+ /**
3003
+ * Clears the message field making it undefined.
3004
+ * @return {!proto.DeleteGeneralLedgerAccountResponse} returns this
3005
+ */
3006
+ proto.DeleteGeneralLedgerAccountResponse.prototype.clearMeta = function() {
3007
+ return this.setMeta(undefined);
3008
+ };
3009
+
3010
+
3011
+ /**
3012
+ * Returns whether this field is set.
3013
+ * @return {boolean}
3014
+ */
3015
+ proto.DeleteGeneralLedgerAccountResponse.prototype.hasMeta = function() {
3016
+ return jspb.Message.getField(this, 2) != null;
3017
+ };
3018
+
3019
+
3020
+ goog.object.extend(exports, proto);