@gitpod/supervisor-api-grpc 0.1.5-patch-2-fork.0 → 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.
@@ -1,21 +1,34 @@
1
+ // source: notification.proto
1
2
  /**
2
3
  * @fileoverview
3
4
  * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
4
6
  * @suppress {messageConventions} JS Compiler reports an error if a variable or
5
7
  * field starts with 'MSG_' and isn't a translatable message.
6
8
  * @public
7
9
  */
8
10
  // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
9
13
 
10
14
  var jspb = require('google-protobuf');
11
15
  var goog = jspb;
12
- var global = Function('return this')();
13
-
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);
14
25
  goog.exportSymbol('proto.supervisor.NotifyRequest', null, global);
15
26
  goog.exportSymbol('proto.supervisor.NotifyRequest.Level', null, global);
16
27
  goog.exportSymbol('proto.supervisor.NotifyResponse', null, global);
17
28
  goog.exportSymbol('proto.supervisor.RespondRequest', null, global);
18
29
  goog.exportSymbol('proto.supervisor.RespondResponse', null, global);
30
+ goog.exportSymbol('proto.supervisor.SubscribeActiveRequest', null, global);
31
+ goog.exportSymbol('proto.supervisor.SubscribeActiveResponse', null, global);
19
32
  goog.exportSymbol('proto.supervisor.SubscribeRequest', null, global);
20
33
  goog.exportSymbol('proto.supervisor.SubscribeResponse', null, global);
21
34
  /**
@@ -144,6 +157,174 @@ if (goog.DEBUG && !COMPILED) {
144
157
  */
145
158
  proto.supervisor.RespondResponse.displayName = 'proto.supervisor.RespondResponse';
146
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
+ }
147
328
 
148
329
  /**
149
330
  * List of repeated fields within this message type.
@@ -156,13 +337,15 @@ proto.supervisor.NotifyRequest.repeatedFields_ = [3];
156
337
 
157
338
  if (jspb.Message.GENERATE_TO_OBJECT) {
158
339
  /**
159
- * Creates an object representation of this proto suitable for use in Soy templates.
340
+ * Creates an object representation of this proto.
160
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.
161
343
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
162
344
  * For the list of reserved names please see:
163
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
164
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
165
- * for transitional soy proto support: http://goto/soy-param-migration
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
166
349
  * @return {!Object}
167
350
  */
168
351
  proto.supervisor.NotifyRequest.prototype.toObject = function(opt_includeInstance) {
@@ -172,8 +355,8 @@ proto.supervisor.NotifyRequest.prototype.toObject = function(opt_includeInstance
172
355
 
173
356
  /**
174
357
  * Static version of the {@see toObject} method.
175
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
176
- * instance for transitional soy proto support:
358
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
359
+ * the JSPB instance for transitional soy proto support:
177
360
  * http://goto/soy-param-migration
178
361
  * @param {!proto.supervisor.NotifyRequest} msg The msg instance to transform.
179
362
  * @return {!Object}
@@ -183,7 +366,7 @@ proto.supervisor.NotifyRequest.toObject = function(includeInstance, msg) {
183
366
  var f, obj = {
184
367
  level: jspb.Message.getFieldWithDefault(msg, 1, 0),
185
368
  message: jspb.Message.getFieldWithDefault(msg, 2, ""),
186
- actionsList: jspb.Message.getRepeatedField(msg, 3)
369
+ actionsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
187
370
  };
188
371
 
189
372
  if (includeInstance) {
@@ -303,9 +486,12 @@ proto.supervisor.NotifyRequest.prototype.getLevel = function() {
303
486
  };
304
487
 
305
488
 
306
- /** @param {!proto.supervisor.NotifyRequest.Level} value */
489
+ /**
490
+ * @param {!proto.supervisor.NotifyRequest.Level} value
491
+ * @return {!proto.supervisor.NotifyRequest} returns this
492
+ */
307
493
  proto.supervisor.NotifyRequest.prototype.setLevel = function(value) {
308
- jspb.Message.setProto3EnumField(this, 1, value);
494
+ return jspb.Message.setProto3EnumField(this, 1, value);
309
495
  };
310
496
 
311
497
 
@@ -318,9 +504,12 @@ proto.supervisor.NotifyRequest.prototype.getMessage = function() {
318
504
  };
319
505
 
320
506
 
321
- /** @param {string} value */
507
+ /**
508
+ * @param {string} value
509
+ * @return {!proto.supervisor.NotifyRequest} returns this
510
+ */
322
511
  proto.supervisor.NotifyRequest.prototype.setMessage = function(value) {
323
- jspb.Message.setProto3StringField(this, 2, value);
512
+ return jspb.Message.setProto3StringField(this, 2, value);
324
513
  };
325
514
 
326
515
 
@@ -333,26 +522,31 @@ proto.supervisor.NotifyRequest.prototype.getActionsList = function() {
333
522
  };
334
523
 
335
524
 
336
- /** @param {!Array<string>} value */
525
+ /**
526
+ * @param {!Array<string>} value
527
+ * @return {!proto.supervisor.NotifyRequest} returns this
528
+ */
337
529
  proto.supervisor.NotifyRequest.prototype.setActionsList = function(value) {
338
- jspb.Message.setField(this, 3, value || []);
530
+ return jspb.Message.setField(this, 3, value || []);
339
531
  };
340
532
 
341
533
 
342
534
  /**
343
535
  * @param {string} value
344
536
  * @param {number=} opt_index
537
+ * @return {!proto.supervisor.NotifyRequest} returns this
345
538
  */
346
539
  proto.supervisor.NotifyRequest.prototype.addActions = function(value, opt_index) {
347
- jspb.Message.addToRepeatedField(this, 3, value, opt_index);
540
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
348
541
  };
349
542
 
350
543
 
351
544
  /**
352
545
  * Clears the list making it empty but non-null.
546
+ * @return {!proto.supervisor.NotifyRequest} returns this
353
547
  */
354
548
  proto.supervisor.NotifyRequest.prototype.clearActionsList = function() {
355
- this.setActionsList([]);
549
+ return this.setActionsList([]);
356
550
  };
357
551
 
358
552
 
@@ -361,13 +555,15 @@ proto.supervisor.NotifyRequest.prototype.clearActionsList = function() {
361
555
 
362
556
  if (jspb.Message.GENERATE_TO_OBJECT) {
363
557
  /**
364
- * Creates an object representation of this proto suitable for use in Soy templates.
558
+ * Creates an object representation of this proto.
365
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.
366
561
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
367
562
  * For the list of reserved names please see:
368
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
369
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
370
- * for transitional soy proto support: http://goto/soy-param-migration
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
371
567
  * @return {!Object}
372
568
  */
373
569
  proto.supervisor.NotifyResponse.prototype.toObject = function(opt_includeInstance) {
@@ -377,8 +573,8 @@ proto.supervisor.NotifyResponse.prototype.toObject = function(opt_includeInstanc
377
573
 
378
574
  /**
379
575
  * Static version of the {@see toObject} method.
380
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
381
- * instance for transitional soy proto support:
576
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
577
+ * the JSPB instance for transitional soy proto support:
382
578
  * http://goto/soy-param-migration
383
579
  * @param {!proto.supervisor.NotifyResponse} msg The msg instance to transform.
384
580
  * @return {!Object}
@@ -475,9 +671,12 @@ proto.supervisor.NotifyResponse.prototype.getAction = function() {
475
671
  };
476
672
 
477
673
 
478
- /** @param {string} value */
674
+ /**
675
+ * @param {string} value
676
+ * @return {!proto.supervisor.NotifyResponse} returns this
677
+ */
479
678
  proto.supervisor.NotifyResponse.prototype.setAction = function(value) {
480
- jspb.Message.setProto3StringField(this, 1, value);
679
+ return jspb.Message.setProto3StringField(this, 1, value);
481
680
  };
482
681
 
483
682
 
@@ -486,13 +685,15 @@ proto.supervisor.NotifyResponse.prototype.setAction = function(value) {
486
685
 
487
686
  if (jspb.Message.GENERATE_TO_OBJECT) {
488
687
  /**
489
- * Creates an object representation of this proto suitable for use in Soy templates.
688
+ * Creates an object representation of this proto.
490
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.
491
691
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
492
692
  * For the list of reserved names please see:
493
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
494
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
495
- * for transitional soy proto support: http://goto/soy-param-migration
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
496
697
  * @return {!Object}
497
698
  */
498
699
  proto.supervisor.SubscribeRequest.prototype.toObject = function(opt_includeInstance) {
@@ -502,8 +703,8 @@ proto.supervisor.SubscribeRequest.prototype.toObject = function(opt_includeInsta
502
703
 
503
704
  /**
504
705
  * Static version of the {@see toObject} method.
505
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
506
- * instance for transitional soy proto support:
706
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
707
+ * the JSPB instance for transitional soy proto support:
507
708
  * http://goto/soy-param-migration
508
709
  * @param {!proto.supervisor.SubscribeRequest} msg The msg instance to transform.
509
710
  * @return {!Object}
@@ -585,13 +786,15 @@ proto.supervisor.SubscribeRequest.serializeBinaryToWriter = function(message, wr
585
786
 
586
787
  if (jspb.Message.GENERATE_TO_OBJECT) {
587
788
  /**
588
- * Creates an object representation of this proto suitable for use in Soy templates.
789
+ * Creates an object representation of this proto.
589
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.
590
792
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
591
793
  * For the list of reserved names please see:
592
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
593
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
594
- * for transitional soy proto support: http://goto/soy-param-migration
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
595
798
  * @return {!Object}
596
799
  */
597
800
  proto.supervisor.SubscribeResponse.prototype.toObject = function(opt_includeInstance) {
@@ -601,8 +804,8 @@ proto.supervisor.SubscribeResponse.prototype.toObject = function(opt_includeInst
601
804
 
602
805
  /**
603
806
  * Static version of the {@see toObject} method.
604
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
605
- * instance for transitional soy proto support:
807
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
808
+ * the JSPB instance for transitional soy proto support:
606
809
  * http://goto/soy-param-migration
607
810
  * @param {!proto.supervisor.SubscribeResponse} msg The msg instance to transform.
608
811
  * @return {!Object}
@@ -713,9 +916,12 @@ proto.supervisor.SubscribeResponse.prototype.getRequestid = function() {
713
916
  };
714
917
 
715
918
 
716
- /** @param {number} value */
919
+ /**
920
+ * @param {number} value
921
+ * @return {!proto.supervisor.SubscribeResponse} returns this
922
+ */
717
923
  proto.supervisor.SubscribeResponse.prototype.setRequestid = function(value) {
718
- jspb.Message.setProto3IntField(this, 1, value);
924
+ return jspb.Message.setProto3IntField(this, 1, value);
719
925
  };
720
926
 
721
927
 
@@ -729,17 +935,21 @@ proto.supervisor.SubscribeResponse.prototype.getRequest = function() {
729
935
  };
730
936
 
731
937
 
732
- /** @param {?proto.supervisor.NotifyRequest|undefined} value */
938
+ /**
939
+ * @param {?proto.supervisor.NotifyRequest|undefined} value
940
+ * @return {!proto.supervisor.SubscribeResponse} returns this
941
+ */
733
942
  proto.supervisor.SubscribeResponse.prototype.setRequest = function(value) {
734
- jspb.Message.setWrapperField(this, 2, value);
943
+ return jspb.Message.setWrapperField(this, 2, value);
735
944
  };
736
945
 
737
946
 
738
947
  /**
739
948
  * Clears the message field making it undefined.
949
+ * @return {!proto.supervisor.SubscribeResponse} returns this
740
950
  */
741
951
  proto.supervisor.SubscribeResponse.prototype.clearRequest = function() {
742
- this.setRequest(undefined);
952
+ return this.setRequest(undefined);
743
953
  };
744
954
 
745
955
 
@@ -757,13 +967,15 @@ proto.supervisor.SubscribeResponse.prototype.hasRequest = function() {
757
967
 
758
968
  if (jspb.Message.GENERATE_TO_OBJECT) {
759
969
  /**
760
- * Creates an object representation of this proto suitable for use in Soy templates.
970
+ * Creates an object representation of this proto.
761
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.
762
973
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
763
974
  * For the list of reserved names please see:
764
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
765
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
766
- * for transitional soy proto support: http://goto/soy-param-migration
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
767
979
  * @return {!Object}
768
980
  */
769
981
  proto.supervisor.RespondRequest.prototype.toObject = function(opt_includeInstance) {
@@ -773,8 +985,8 @@ proto.supervisor.RespondRequest.prototype.toObject = function(opt_includeInstanc
773
985
 
774
986
  /**
775
987
  * Static version of the {@see toObject} method.
776
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
777
- * instance for transitional soy proto support:
988
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
989
+ * the JSPB instance for transitional soy proto support:
778
990
  * http://goto/soy-param-migration
779
991
  * @param {!proto.supervisor.RespondRequest} msg The msg instance to transform.
780
992
  * @return {!Object}
@@ -885,9 +1097,12 @@ proto.supervisor.RespondRequest.prototype.getRequestid = function() {
885
1097
  };
886
1098
 
887
1099
 
888
- /** @param {number} value */
1100
+ /**
1101
+ * @param {number} value
1102
+ * @return {!proto.supervisor.RespondRequest} returns this
1103
+ */
889
1104
  proto.supervisor.RespondRequest.prototype.setRequestid = function(value) {
890
- jspb.Message.setProto3IntField(this, 1, value);
1105
+ return jspb.Message.setProto3IntField(this, 1, value);
891
1106
  };
892
1107
 
893
1108
 
@@ -901,17 +1116,21 @@ proto.supervisor.RespondRequest.prototype.getResponse = function() {
901
1116
  };
902
1117
 
903
1118
 
904
- /** @param {?proto.supervisor.NotifyResponse|undefined} value */
1119
+ /**
1120
+ * @param {?proto.supervisor.NotifyResponse|undefined} value
1121
+ * @return {!proto.supervisor.RespondRequest} returns this
1122
+ */
905
1123
  proto.supervisor.RespondRequest.prototype.setResponse = function(value) {
906
- jspb.Message.setWrapperField(this, 2, value);
1124
+ return jspb.Message.setWrapperField(this, 2, value);
907
1125
  };
908
1126
 
909
1127
 
910
1128
  /**
911
1129
  * Clears the message field making it undefined.
1130
+ * @return {!proto.supervisor.RespondRequest} returns this
912
1131
  */
913
1132
  proto.supervisor.RespondRequest.prototype.clearResponse = function() {
914
- this.setResponse(undefined);
1133
+ return this.setResponse(undefined);
915
1134
  };
916
1135
 
917
1136
 
@@ -929,13 +1148,15 @@ proto.supervisor.RespondRequest.prototype.hasResponse = function() {
929
1148
 
930
1149
  if (jspb.Message.GENERATE_TO_OBJECT) {
931
1150
  /**
932
- * Creates an object representation of this proto suitable for use in Soy templates.
1151
+ * Creates an object representation of this proto.
933
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.
934
1154
  * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
935
1155
  * For the list of reserved names please see:
936
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
937
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
938
- * for transitional soy proto support: http://goto/soy-param-migration
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
939
1160
  * @return {!Object}
940
1161
  */
941
1162
  proto.supervisor.RespondResponse.prototype.toObject = function(opt_includeInstance) {
@@ -945,8 +1166,8 @@ proto.supervisor.RespondResponse.prototype.toObject = function(opt_includeInstan
945
1166
 
946
1167
  /**
947
1168
  * Static version of the {@see toObject} method.
948
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
949
- * instance for transitional soy proto support:
1169
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1170
+ * the JSPB instance for transitional soy proto support:
950
1171
  * http://goto/soy-param-migration
951
1172
  * @param {!proto.supervisor.RespondResponse} msg The msg instance to transform.
952
1173
  * @return {!Object}
@@ -1023,4 +1244,1243 @@ proto.supervisor.RespondResponse.serializeBinaryToWriter = function(message, wri
1023
1244
  };
1024
1245
 
1025
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
+
1026
2486
  goog.object.extend(exports, proto.supervisor);