@gitpod/supervisor-api-grpc 0.1.5-patch-1.2 → 0.1.5-pavel-git-status-fix.4

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