@aldiokta/protocgen 1.0.69 → 1.0.70

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