@aldiokta/protocgen 1.0.77 → 1.0.79

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