@aldiokta/protocgen 1.0.40 → 1.0.42

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