@aldiokta/protocgen 1.0.67 → 1.0.69

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