@gitpod/supervisor-api-grpc 0.1.5-sefftinge-remove-recursive-chown-2899.67 → 0.1.5-server-vscode-oauth2.11

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,1070 @@
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')();
17
+
18
+ goog.exportSymbol('proto.supervisor.NotifyRequest', null, global);
19
+ goog.exportSymbol('proto.supervisor.NotifyRequest.Level', null, global);
20
+ goog.exportSymbol('proto.supervisor.NotifyResponse', null, global);
21
+ goog.exportSymbol('proto.supervisor.RespondRequest', null, global);
22
+ goog.exportSymbol('proto.supervisor.RespondResponse', null, global);
23
+ goog.exportSymbol('proto.supervisor.SubscribeRequest', null, global);
24
+ goog.exportSymbol('proto.supervisor.SubscribeResponse', null, global);
25
+ /**
26
+ * Generated by JsPbCodeGenerator.
27
+ * @param {Array=} opt_data Optional initial data array, typically from a
28
+ * server response, or constructed directly in Javascript. The array is used
29
+ * in place and becomes part of the constructed object. It is not cloned.
30
+ * If no data is provided, the constructed object will be empty, but still
31
+ * valid.
32
+ * @extends {jspb.Message}
33
+ * @constructor
34
+ */
35
+ proto.supervisor.NotifyRequest = function(opt_data) {
36
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.supervisor.NotifyRequest.repeatedFields_, null);
37
+ };
38
+ goog.inherits(proto.supervisor.NotifyRequest, jspb.Message);
39
+ if (goog.DEBUG && !COMPILED) {
40
+ /**
41
+ * @public
42
+ * @override
43
+ */
44
+ proto.supervisor.NotifyRequest.displayName = 'proto.supervisor.NotifyRequest';
45
+ }
46
+ /**
47
+ * Generated by JsPbCodeGenerator.
48
+ * @param {Array=} opt_data Optional initial data array, typically from a
49
+ * server response, or constructed directly in Javascript. The array is used
50
+ * in place and becomes part of the constructed object. It is not cloned.
51
+ * If no data is provided, the constructed object will be empty, but still
52
+ * valid.
53
+ * @extends {jspb.Message}
54
+ * @constructor
55
+ */
56
+ proto.supervisor.NotifyResponse = function(opt_data) {
57
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
58
+ };
59
+ goog.inherits(proto.supervisor.NotifyResponse, jspb.Message);
60
+ if (goog.DEBUG && !COMPILED) {
61
+ /**
62
+ * @public
63
+ * @override
64
+ */
65
+ proto.supervisor.NotifyResponse.displayName = 'proto.supervisor.NotifyResponse';
66
+ }
67
+ /**
68
+ * Generated by JsPbCodeGenerator.
69
+ * @param {Array=} opt_data Optional initial data array, typically from a
70
+ * server response, or constructed directly in Javascript. The array is used
71
+ * in place and becomes part of the constructed object. It is not cloned.
72
+ * If no data is provided, the constructed object will be empty, but still
73
+ * valid.
74
+ * @extends {jspb.Message}
75
+ * @constructor
76
+ */
77
+ proto.supervisor.SubscribeRequest = function(opt_data) {
78
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
79
+ };
80
+ goog.inherits(proto.supervisor.SubscribeRequest, jspb.Message);
81
+ if (goog.DEBUG && !COMPILED) {
82
+ /**
83
+ * @public
84
+ * @override
85
+ */
86
+ proto.supervisor.SubscribeRequest.displayName = 'proto.supervisor.SubscribeRequest';
87
+ }
88
+ /**
89
+ * Generated by JsPbCodeGenerator.
90
+ * @param {Array=} opt_data Optional initial data array, typically from a
91
+ * server response, or constructed directly in Javascript. The array is used
92
+ * in place and becomes part of the constructed object. It is not cloned.
93
+ * If no data is provided, the constructed object will be empty, but still
94
+ * valid.
95
+ * @extends {jspb.Message}
96
+ * @constructor
97
+ */
98
+ proto.supervisor.SubscribeResponse = function(opt_data) {
99
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
100
+ };
101
+ goog.inherits(proto.supervisor.SubscribeResponse, jspb.Message);
102
+ if (goog.DEBUG && !COMPILED) {
103
+ /**
104
+ * @public
105
+ * @override
106
+ */
107
+ proto.supervisor.SubscribeResponse.displayName = 'proto.supervisor.SubscribeResponse';
108
+ }
109
+ /**
110
+ * Generated by JsPbCodeGenerator.
111
+ * @param {Array=} opt_data Optional initial data array, typically from a
112
+ * server response, or constructed directly in Javascript. The array is used
113
+ * in place and becomes part of the constructed object. It is not cloned.
114
+ * If no data is provided, the constructed object will be empty, but still
115
+ * valid.
116
+ * @extends {jspb.Message}
117
+ * @constructor
118
+ */
119
+ proto.supervisor.RespondRequest = function(opt_data) {
120
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
121
+ };
122
+ goog.inherits(proto.supervisor.RespondRequest, jspb.Message);
123
+ if (goog.DEBUG && !COMPILED) {
124
+ /**
125
+ * @public
126
+ * @override
127
+ */
128
+ proto.supervisor.RespondRequest.displayName = 'proto.supervisor.RespondRequest';
129
+ }
130
+ /**
131
+ * Generated by JsPbCodeGenerator.
132
+ * @param {Array=} opt_data Optional initial data array, typically from a
133
+ * server response, or constructed directly in Javascript. The array is used
134
+ * in place and becomes part of the constructed object. It is not cloned.
135
+ * If no data is provided, the constructed object will be empty, but still
136
+ * valid.
137
+ * @extends {jspb.Message}
138
+ * @constructor
139
+ */
140
+ proto.supervisor.RespondResponse = function(opt_data) {
141
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
142
+ };
143
+ goog.inherits(proto.supervisor.RespondResponse, jspb.Message);
144
+ if (goog.DEBUG && !COMPILED) {
145
+ /**
146
+ * @public
147
+ * @override
148
+ */
149
+ proto.supervisor.RespondResponse.displayName = 'proto.supervisor.RespondResponse';
150
+ }
151
+
152
+ /**
153
+ * List of repeated fields within this message type.
154
+ * @private {!Array<number>}
155
+ * @const
156
+ */
157
+ proto.supervisor.NotifyRequest.repeatedFields_ = [3];
158
+
159
+
160
+
161
+ if (jspb.Message.GENERATE_TO_OBJECT) {
162
+ /**
163
+ * Creates an object representation of this proto.
164
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
165
+ * Optional fields that are not set will be set to undefined.
166
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
167
+ * For the list of reserved names please see:
168
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
169
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
170
+ * JSPB instance for transitional soy proto support:
171
+ * http://goto/soy-param-migration
172
+ * @return {!Object}
173
+ */
174
+ proto.supervisor.NotifyRequest.prototype.toObject = function(opt_includeInstance) {
175
+ return proto.supervisor.NotifyRequest.toObject(opt_includeInstance, this);
176
+ };
177
+
178
+
179
+ /**
180
+ * Static version of the {@see toObject} method.
181
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
182
+ * the JSPB instance for transitional soy proto support:
183
+ * http://goto/soy-param-migration
184
+ * @param {!proto.supervisor.NotifyRequest} msg The msg instance to transform.
185
+ * @return {!Object}
186
+ * @suppress {unusedLocalVariables} f is only used for nested messages
187
+ */
188
+ proto.supervisor.NotifyRequest.toObject = function(includeInstance, msg) {
189
+ var f, obj = {
190
+ level: jspb.Message.getFieldWithDefault(msg, 1, 0),
191
+ message: jspb.Message.getFieldWithDefault(msg, 2, ""),
192
+ actionsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
193
+ };
194
+
195
+ if (includeInstance) {
196
+ obj.$jspbMessageInstance = msg;
197
+ }
198
+ return obj;
199
+ };
200
+ }
201
+
202
+
203
+ /**
204
+ * Deserializes binary data (in protobuf wire format).
205
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
206
+ * @return {!proto.supervisor.NotifyRequest}
207
+ */
208
+ proto.supervisor.NotifyRequest.deserializeBinary = function(bytes) {
209
+ var reader = new jspb.BinaryReader(bytes);
210
+ var msg = new proto.supervisor.NotifyRequest;
211
+ return proto.supervisor.NotifyRequest.deserializeBinaryFromReader(msg, reader);
212
+ };
213
+
214
+
215
+ /**
216
+ * Deserializes binary data (in protobuf wire format) from the
217
+ * given reader into the given message object.
218
+ * @param {!proto.supervisor.NotifyRequest} msg The message object to deserialize into.
219
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
220
+ * @return {!proto.supervisor.NotifyRequest}
221
+ */
222
+ proto.supervisor.NotifyRequest.deserializeBinaryFromReader = function(msg, reader) {
223
+ while (reader.nextField()) {
224
+ if (reader.isEndGroup()) {
225
+ break;
226
+ }
227
+ var field = reader.getFieldNumber();
228
+ switch (field) {
229
+ case 1:
230
+ var value = /** @type {!proto.supervisor.NotifyRequest.Level} */ (reader.readEnum());
231
+ msg.setLevel(value);
232
+ break;
233
+ case 2:
234
+ var value = /** @type {string} */ (reader.readString());
235
+ msg.setMessage(value);
236
+ break;
237
+ case 3:
238
+ var value = /** @type {string} */ (reader.readString());
239
+ msg.addActions(value);
240
+ break;
241
+ default:
242
+ reader.skipField();
243
+ break;
244
+ }
245
+ }
246
+ return msg;
247
+ };
248
+
249
+
250
+ /**
251
+ * Serializes the message to binary data (in protobuf wire format).
252
+ * @return {!Uint8Array}
253
+ */
254
+ proto.supervisor.NotifyRequest.prototype.serializeBinary = function() {
255
+ var writer = new jspb.BinaryWriter();
256
+ proto.supervisor.NotifyRequest.serializeBinaryToWriter(this, writer);
257
+ return writer.getResultBuffer();
258
+ };
259
+
260
+
261
+ /**
262
+ * Serializes the given message to binary data (in protobuf wire
263
+ * format), writing to the given BinaryWriter.
264
+ * @param {!proto.supervisor.NotifyRequest} message
265
+ * @param {!jspb.BinaryWriter} writer
266
+ * @suppress {unusedLocalVariables} f is only used for nested messages
267
+ */
268
+ proto.supervisor.NotifyRequest.serializeBinaryToWriter = function(message, writer) {
269
+ var f = undefined;
270
+ f = message.getLevel();
271
+ if (f !== 0.0) {
272
+ writer.writeEnum(
273
+ 1,
274
+ f
275
+ );
276
+ }
277
+ f = message.getMessage();
278
+ if (f.length > 0) {
279
+ writer.writeString(
280
+ 2,
281
+ f
282
+ );
283
+ }
284
+ f = message.getActionsList();
285
+ if (f.length > 0) {
286
+ writer.writeRepeatedString(
287
+ 3,
288
+ f
289
+ );
290
+ }
291
+ };
292
+
293
+
294
+ /**
295
+ * @enum {number}
296
+ */
297
+ proto.supervisor.NotifyRequest.Level = {
298
+ ERROR: 0,
299
+ WARNING: 1,
300
+ INFO: 2
301
+ };
302
+
303
+ /**
304
+ * optional Level level = 1;
305
+ * @return {!proto.supervisor.NotifyRequest.Level}
306
+ */
307
+ proto.supervisor.NotifyRequest.prototype.getLevel = function() {
308
+ return /** @type {!proto.supervisor.NotifyRequest.Level} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
309
+ };
310
+
311
+
312
+ /**
313
+ * @param {!proto.supervisor.NotifyRequest.Level} value
314
+ * @return {!proto.supervisor.NotifyRequest} returns this
315
+ */
316
+ proto.supervisor.NotifyRequest.prototype.setLevel = function(value) {
317
+ return jspb.Message.setProto3EnumField(this, 1, value);
318
+ };
319
+
320
+
321
+ /**
322
+ * optional string message = 2;
323
+ * @return {string}
324
+ */
325
+ proto.supervisor.NotifyRequest.prototype.getMessage = function() {
326
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
327
+ };
328
+
329
+
330
+ /**
331
+ * @param {string} value
332
+ * @return {!proto.supervisor.NotifyRequest} returns this
333
+ */
334
+ proto.supervisor.NotifyRequest.prototype.setMessage = function(value) {
335
+ return jspb.Message.setProto3StringField(this, 2, value);
336
+ };
337
+
338
+
339
+ /**
340
+ * repeated string actions = 3;
341
+ * @return {!Array<string>}
342
+ */
343
+ proto.supervisor.NotifyRequest.prototype.getActionsList = function() {
344
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
345
+ };
346
+
347
+
348
+ /**
349
+ * @param {!Array<string>} value
350
+ * @return {!proto.supervisor.NotifyRequest} returns this
351
+ */
352
+ proto.supervisor.NotifyRequest.prototype.setActionsList = function(value) {
353
+ return jspb.Message.setField(this, 3, value || []);
354
+ };
355
+
356
+
357
+ /**
358
+ * @param {string} value
359
+ * @param {number=} opt_index
360
+ * @return {!proto.supervisor.NotifyRequest} returns this
361
+ */
362
+ proto.supervisor.NotifyRequest.prototype.addActions = function(value, opt_index) {
363
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
364
+ };
365
+
366
+
367
+ /**
368
+ * Clears the list making it empty but non-null.
369
+ * @return {!proto.supervisor.NotifyRequest} returns this
370
+ */
371
+ proto.supervisor.NotifyRequest.prototype.clearActionsList = function() {
372
+ return this.setActionsList([]);
373
+ };
374
+
375
+
376
+
377
+
378
+
379
+ if (jspb.Message.GENERATE_TO_OBJECT) {
380
+ /**
381
+ * Creates an object representation of this proto.
382
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
383
+ * Optional fields that are not set will be set to undefined.
384
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
385
+ * For the list of reserved names please see:
386
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
387
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
388
+ * JSPB instance for transitional soy proto support:
389
+ * http://goto/soy-param-migration
390
+ * @return {!Object}
391
+ */
392
+ proto.supervisor.NotifyResponse.prototype.toObject = function(opt_includeInstance) {
393
+ return proto.supervisor.NotifyResponse.toObject(opt_includeInstance, this);
394
+ };
395
+
396
+
397
+ /**
398
+ * Static version of the {@see toObject} method.
399
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
400
+ * the JSPB instance for transitional soy proto support:
401
+ * http://goto/soy-param-migration
402
+ * @param {!proto.supervisor.NotifyResponse} msg The msg instance to transform.
403
+ * @return {!Object}
404
+ * @suppress {unusedLocalVariables} f is only used for nested messages
405
+ */
406
+ proto.supervisor.NotifyResponse.toObject = function(includeInstance, msg) {
407
+ var f, obj = {
408
+ action: jspb.Message.getFieldWithDefault(msg, 1, "")
409
+ };
410
+
411
+ if (includeInstance) {
412
+ obj.$jspbMessageInstance = msg;
413
+ }
414
+ return obj;
415
+ };
416
+ }
417
+
418
+
419
+ /**
420
+ * Deserializes binary data (in protobuf wire format).
421
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
422
+ * @return {!proto.supervisor.NotifyResponse}
423
+ */
424
+ proto.supervisor.NotifyResponse.deserializeBinary = function(bytes) {
425
+ var reader = new jspb.BinaryReader(bytes);
426
+ var msg = new proto.supervisor.NotifyResponse;
427
+ return proto.supervisor.NotifyResponse.deserializeBinaryFromReader(msg, reader);
428
+ };
429
+
430
+
431
+ /**
432
+ * Deserializes binary data (in protobuf wire format) from the
433
+ * given reader into the given message object.
434
+ * @param {!proto.supervisor.NotifyResponse} msg The message object to deserialize into.
435
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
436
+ * @return {!proto.supervisor.NotifyResponse}
437
+ */
438
+ proto.supervisor.NotifyResponse.deserializeBinaryFromReader = function(msg, reader) {
439
+ while (reader.nextField()) {
440
+ if (reader.isEndGroup()) {
441
+ break;
442
+ }
443
+ var field = reader.getFieldNumber();
444
+ switch (field) {
445
+ case 1:
446
+ var value = /** @type {string} */ (reader.readString());
447
+ msg.setAction(value);
448
+ break;
449
+ default:
450
+ reader.skipField();
451
+ break;
452
+ }
453
+ }
454
+ return msg;
455
+ };
456
+
457
+
458
+ /**
459
+ * Serializes the message to binary data (in protobuf wire format).
460
+ * @return {!Uint8Array}
461
+ */
462
+ proto.supervisor.NotifyResponse.prototype.serializeBinary = function() {
463
+ var writer = new jspb.BinaryWriter();
464
+ proto.supervisor.NotifyResponse.serializeBinaryToWriter(this, writer);
465
+ return writer.getResultBuffer();
466
+ };
467
+
468
+
469
+ /**
470
+ * Serializes the given message to binary data (in protobuf wire
471
+ * format), writing to the given BinaryWriter.
472
+ * @param {!proto.supervisor.NotifyResponse} message
473
+ * @param {!jspb.BinaryWriter} writer
474
+ * @suppress {unusedLocalVariables} f is only used for nested messages
475
+ */
476
+ proto.supervisor.NotifyResponse.serializeBinaryToWriter = function(message, writer) {
477
+ var f = undefined;
478
+ f = message.getAction();
479
+ if (f.length > 0) {
480
+ writer.writeString(
481
+ 1,
482
+ f
483
+ );
484
+ }
485
+ };
486
+
487
+
488
+ /**
489
+ * optional string action = 1;
490
+ * @return {string}
491
+ */
492
+ proto.supervisor.NotifyResponse.prototype.getAction = function() {
493
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
494
+ };
495
+
496
+
497
+ /**
498
+ * @param {string} value
499
+ * @return {!proto.supervisor.NotifyResponse} returns this
500
+ */
501
+ proto.supervisor.NotifyResponse.prototype.setAction = function(value) {
502
+ return jspb.Message.setProto3StringField(this, 1, value);
503
+ };
504
+
505
+
506
+
507
+
508
+
509
+ if (jspb.Message.GENERATE_TO_OBJECT) {
510
+ /**
511
+ * Creates an object representation of this proto.
512
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
513
+ * Optional fields that are not set will be set to undefined.
514
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
515
+ * For the list of reserved names please see:
516
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
517
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
518
+ * JSPB instance for transitional soy proto support:
519
+ * http://goto/soy-param-migration
520
+ * @return {!Object}
521
+ */
522
+ proto.supervisor.SubscribeRequest.prototype.toObject = function(opt_includeInstance) {
523
+ return proto.supervisor.SubscribeRequest.toObject(opt_includeInstance, this);
524
+ };
525
+
526
+
527
+ /**
528
+ * Static version of the {@see toObject} method.
529
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
530
+ * the JSPB instance for transitional soy proto support:
531
+ * http://goto/soy-param-migration
532
+ * @param {!proto.supervisor.SubscribeRequest} msg The msg instance to transform.
533
+ * @return {!Object}
534
+ * @suppress {unusedLocalVariables} f is only used for nested messages
535
+ */
536
+ proto.supervisor.SubscribeRequest.toObject = function(includeInstance, msg) {
537
+ var f, obj = {
538
+
539
+ };
540
+
541
+ if (includeInstance) {
542
+ obj.$jspbMessageInstance = msg;
543
+ }
544
+ return obj;
545
+ };
546
+ }
547
+
548
+
549
+ /**
550
+ * Deserializes binary data (in protobuf wire format).
551
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
552
+ * @return {!proto.supervisor.SubscribeRequest}
553
+ */
554
+ proto.supervisor.SubscribeRequest.deserializeBinary = function(bytes) {
555
+ var reader = new jspb.BinaryReader(bytes);
556
+ var msg = new proto.supervisor.SubscribeRequest;
557
+ return proto.supervisor.SubscribeRequest.deserializeBinaryFromReader(msg, reader);
558
+ };
559
+
560
+
561
+ /**
562
+ * Deserializes binary data (in protobuf wire format) from the
563
+ * given reader into the given message object.
564
+ * @param {!proto.supervisor.SubscribeRequest} msg The message object to deserialize into.
565
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
566
+ * @return {!proto.supervisor.SubscribeRequest}
567
+ */
568
+ proto.supervisor.SubscribeRequest.deserializeBinaryFromReader = function(msg, reader) {
569
+ while (reader.nextField()) {
570
+ if (reader.isEndGroup()) {
571
+ break;
572
+ }
573
+ var field = reader.getFieldNumber();
574
+ switch (field) {
575
+ default:
576
+ reader.skipField();
577
+ break;
578
+ }
579
+ }
580
+ return msg;
581
+ };
582
+
583
+
584
+ /**
585
+ * Serializes the message to binary data (in protobuf wire format).
586
+ * @return {!Uint8Array}
587
+ */
588
+ proto.supervisor.SubscribeRequest.prototype.serializeBinary = function() {
589
+ var writer = new jspb.BinaryWriter();
590
+ proto.supervisor.SubscribeRequest.serializeBinaryToWriter(this, writer);
591
+ return writer.getResultBuffer();
592
+ };
593
+
594
+
595
+ /**
596
+ * Serializes the given message to binary data (in protobuf wire
597
+ * format), writing to the given BinaryWriter.
598
+ * @param {!proto.supervisor.SubscribeRequest} message
599
+ * @param {!jspb.BinaryWriter} writer
600
+ * @suppress {unusedLocalVariables} f is only used for nested messages
601
+ */
602
+ proto.supervisor.SubscribeRequest.serializeBinaryToWriter = function(message, writer) {
603
+ var f = undefined;
604
+ };
605
+
606
+
607
+
608
+
609
+
610
+ if (jspb.Message.GENERATE_TO_OBJECT) {
611
+ /**
612
+ * Creates an object representation of this proto.
613
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
614
+ * Optional fields that are not set will be set to undefined.
615
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
616
+ * For the list of reserved names please see:
617
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
618
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
619
+ * JSPB instance for transitional soy proto support:
620
+ * http://goto/soy-param-migration
621
+ * @return {!Object}
622
+ */
623
+ proto.supervisor.SubscribeResponse.prototype.toObject = function(opt_includeInstance) {
624
+ return proto.supervisor.SubscribeResponse.toObject(opt_includeInstance, this);
625
+ };
626
+
627
+
628
+ /**
629
+ * Static version of the {@see toObject} method.
630
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
631
+ * the JSPB instance for transitional soy proto support:
632
+ * http://goto/soy-param-migration
633
+ * @param {!proto.supervisor.SubscribeResponse} msg The msg instance to transform.
634
+ * @return {!Object}
635
+ * @suppress {unusedLocalVariables} f is only used for nested messages
636
+ */
637
+ proto.supervisor.SubscribeResponse.toObject = function(includeInstance, msg) {
638
+ var f, obj = {
639
+ requestid: jspb.Message.getFieldWithDefault(msg, 1, 0),
640
+ request: (f = msg.getRequest()) && proto.supervisor.NotifyRequest.toObject(includeInstance, f)
641
+ };
642
+
643
+ if (includeInstance) {
644
+ obj.$jspbMessageInstance = msg;
645
+ }
646
+ return obj;
647
+ };
648
+ }
649
+
650
+
651
+ /**
652
+ * Deserializes binary data (in protobuf wire format).
653
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
654
+ * @return {!proto.supervisor.SubscribeResponse}
655
+ */
656
+ proto.supervisor.SubscribeResponse.deserializeBinary = function(bytes) {
657
+ var reader = new jspb.BinaryReader(bytes);
658
+ var msg = new proto.supervisor.SubscribeResponse;
659
+ return proto.supervisor.SubscribeResponse.deserializeBinaryFromReader(msg, reader);
660
+ };
661
+
662
+
663
+ /**
664
+ * Deserializes binary data (in protobuf wire format) from the
665
+ * given reader into the given message object.
666
+ * @param {!proto.supervisor.SubscribeResponse} msg The message object to deserialize into.
667
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
668
+ * @return {!proto.supervisor.SubscribeResponse}
669
+ */
670
+ proto.supervisor.SubscribeResponse.deserializeBinaryFromReader = function(msg, reader) {
671
+ while (reader.nextField()) {
672
+ if (reader.isEndGroup()) {
673
+ break;
674
+ }
675
+ var field = reader.getFieldNumber();
676
+ switch (field) {
677
+ case 1:
678
+ var value = /** @type {number} */ (reader.readUint64());
679
+ msg.setRequestid(value);
680
+ break;
681
+ case 2:
682
+ var value = new proto.supervisor.NotifyRequest;
683
+ reader.readMessage(value,proto.supervisor.NotifyRequest.deserializeBinaryFromReader);
684
+ msg.setRequest(value);
685
+ break;
686
+ default:
687
+ reader.skipField();
688
+ break;
689
+ }
690
+ }
691
+ return msg;
692
+ };
693
+
694
+
695
+ /**
696
+ * Serializes the message to binary data (in protobuf wire format).
697
+ * @return {!Uint8Array}
698
+ */
699
+ proto.supervisor.SubscribeResponse.prototype.serializeBinary = function() {
700
+ var writer = new jspb.BinaryWriter();
701
+ proto.supervisor.SubscribeResponse.serializeBinaryToWriter(this, writer);
702
+ return writer.getResultBuffer();
703
+ };
704
+
705
+
706
+ /**
707
+ * Serializes the given message to binary data (in protobuf wire
708
+ * format), writing to the given BinaryWriter.
709
+ * @param {!proto.supervisor.SubscribeResponse} message
710
+ * @param {!jspb.BinaryWriter} writer
711
+ * @suppress {unusedLocalVariables} f is only used for nested messages
712
+ */
713
+ proto.supervisor.SubscribeResponse.serializeBinaryToWriter = function(message, writer) {
714
+ var f = undefined;
715
+ f = message.getRequestid();
716
+ if (f !== 0) {
717
+ writer.writeUint64(
718
+ 1,
719
+ f
720
+ );
721
+ }
722
+ f = message.getRequest();
723
+ if (f != null) {
724
+ writer.writeMessage(
725
+ 2,
726
+ f,
727
+ proto.supervisor.NotifyRequest.serializeBinaryToWriter
728
+ );
729
+ }
730
+ };
731
+
732
+
733
+ /**
734
+ * optional uint64 requestId = 1;
735
+ * @return {number}
736
+ */
737
+ proto.supervisor.SubscribeResponse.prototype.getRequestid = function() {
738
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
739
+ };
740
+
741
+
742
+ /**
743
+ * @param {number} value
744
+ * @return {!proto.supervisor.SubscribeResponse} returns this
745
+ */
746
+ proto.supervisor.SubscribeResponse.prototype.setRequestid = function(value) {
747
+ return jspb.Message.setProto3IntField(this, 1, value);
748
+ };
749
+
750
+
751
+ /**
752
+ * optional NotifyRequest request = 2;
753
+ * @return {?proto.supervisor.NotifyRequest}
754
+ */
755
+ proto.supervisor.SubscribeResponse.prototype.getRequest = function() {
756
+ return /** @type{?proto.supervisor.NotifyRequest} */ (
757
+ jspb.Message.getWrapperField(this, proto.supervisor.NotifyRequest, 2));
758
+ };
759
+
760
+
761
+ /**
762
+ * @param {?proto.supervisor.NotifyRequest|undefined} value
763
+ * @return {!proto.supervisor.SubscribeResponse} returns this
764
+ */
765
+ proto.supervisor.SubscribeResponse.prototype.setRequest = function(value) {
766
+ return jspb.Message.setWrapperField(this, 2, value);
767
+ };
768
+
769
+
770
+ /**
771
+ * Clears the message field making it undefined.
772
+ * @return {!proto.supervisor.SubscribeResponse} returns this
773
+ */
774
+ proto.supervisor.SubscribeResponse.prototype.clearRequest = function() {
775
+ return this.setRequest(undefined);
776
+ };
777
+
778
+
779
+ /**
780
+ * Returns whether this field is set.
781
+ * @return {boolean}
782
+ */
783
+ proto.supervisor.SubscribeResponse.prototype.hasRequest = function() {
784
+ return jspb.Message.getField(this, 2) != null;
785
+ };
786
+
787
+
788
+
789
+
790
+
791
+ if (jspb.Message.GENERATE_TO_OBJECT) {
792
+ /**
793
+ * Creates an object representation of this proto.
794
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
795
+ * Optional fields that are not set will be set to undefined.
796
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
797
+ * For the list of reserved names please see:
798
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
799
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
800
+ * JSPB instance for transitional soy proto support:
801
+ * http://goto/soy-param-migration
802
+ * @return {!Object}
803
+ */
804
+ proto.supervisor.RespondRequest.prototype.toObject = function(opt_includeInstance) {
805
+ return proto.supervisor.RespondRequest.toObject(opt_includeInstance, this);
806
+ };
807
+
808
+
809
+ /**
810
+ * Static version of the {@see toObject} method.
811
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
812
+ * the JSPB instance for transitional soy proto support:
813
+ * http://goto/soy-param-migration
814
+ * @param {!proto.supervisor.RespondRequest} msg The msg instance to transform.
815
+ * @return {!Object}
816
+ * @suppress {unusedLocalVariables} f is only used for nested messages
817
+ */
818
+ proto.supervisor.RespondRequest.toObject = function(includeInstance, msg) {
819
+ var f, obj = {
820
+ requestid: jspb.Message.getFieldWithDefault(msg, 1, 0),
821
+ response: (f = msg.getResponse()) && proto.supervisor.NotifyResponse.toObject(includeInstance, f)
822
+ };
823
+
824
+ if (includeInstance) {
825
+ obj.$jspbMessageInstance = msg;
826
+ }
827
+ return obj;
828
+ };
829
+ }
830
+
831
+
832
+ /**
833
+ * Deserializes binary data (in protobuf wire format).
834
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
835
+ * @return {!proto.supervisor.RespondRequest}
836
+ */
837
+ proto.supervisor.RespondRequest.deserializeBinary = function(bytes) {
838
+ var reader = new jspb.BinaryReader(bytes);
839
+ var msg = new proto.supervisor.RespondRequest;
840
+ return proto.supervisor.RespondRequest.deserializeBinaryFromReader(msg, reader);
841
+ };
842
+
843
+
844
+ /**
845
+ * Deserializes binary data (in protobuf wire format) from the
846
+ * given reader into the given message object.
847
+ * @param {!proto.supervisor.RespondRequest} msg The message object to deserialize into.
848
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
849
+ * @return {!proto.supervisor.RespondRequest}
850
+ */
851
+ proto.supervisor.RespondRequest.deserializeBinaryFromReader = function(msg, reader) {
852
+ while (reader.nextField()) {
853
+ if (reader.isEndGroup()) {
854
+ break;
855
+ }
856
+ var field = reader.getFieldNumber();
857
+ switch (field) {
858
+ case 1:
859
+ var value = /** @type {number} */ (reader.readUint64());
860
+ msg.setRequestid(value);
861
+ break;
862
+ case 2:
863
+ var value = new proto.supervisor.NotifyResponse;
864
+ reader.readMessage(value,proto.supervisor.NotifyResponse.deserializeBinaryFromReader);
865
+ msg.setResponse(value);
866
+ break;
867
+ default:
868
+ reader.skipField();
869
+ break;
870
+ }
871
+ }
872
+ return msg;
873
+ };
874
+
875
+
876
+ /**
877
+ * Serializes the message to binary data (in protobuf wire format).
878
+ * @return {!Uint8Array}
879
+ */
880
+ proto.supervisor.RespondRequest.prototype.serializeBinary = function() {
881
+ var writer = new jspb.BinaryWriter();
882
+ proto.supervisor.RespondRequest.serializeBinaryToWriter(this, writer);
883
+ return writer.getResultBuffer();
884
+ };
885
+
886
+
887
+ /**
888
+ * Serializes the given message to binary data (in protobuf wire
889
+ * format), writing to the given BinaryWriter.
890
+ * @param {!proto.supervisor.RespondRequest} message
891
+ * @param {!jspb.BinaryWriter} writer
892
+ * @suppress {unusedLocalVariables} f is only used for nested messages
893
+ */
894
+ proto.supervisor.RespondRequest.serializeBinaryToWriter = function(message, writer) {
895
+ var f = undefined;
896
+ f = message.getRequestid();
897
+ if (f !== 0) {
898
+ writer.writeUint64(
899
+ 1,
900
+ f
901
+ );
902
+ }
903
+ f = message.getResponse();
904
+ if (f != null) {
905
+ writer.writeMessage(
906
+ 2,
907
+ f,
908
+ proto.supervisor.NotifyResponse.serializeBinaryToWriter
909
+ );
910
+ }
911
+ };
912
+
913
+
914
+ /**
915
+ * optional uint64 requestId = 1;
916
+ * @return {number}
917
+ */
918
+ proto.supervisor.RespondRequest.prototype.getRequestid = function() {
919
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
920
+ };
921
+
922
+
923
+ /**
924
+ * @param {number} value
925
+ * @return {!proto.supervisor.RespondRequest} returns this
926
+ */
927
+ proto.supervisor.RespondRequest.prototype.setRequestid = function(value) {
928
+ return jspb.Message.setProto3IntField(this, 1, value);
929
+ };
930
+
931
+
932
+ /**
933
+ * optional NotifyResponse response = 2;
934
+ * @return {?proto.supervisor.NotifyResponse}
935
+ */
936
+ proto.supervisor.RespondRequest.prototype.getResponse = function() {
937
+ return /** @type{?proto.supervisor.NotifyResponse} */ (
938
+ jspb.Message.getWrapperField(this, proto.supervisor.NotifyResponse, 2));
939
+ };
940
+
941
+
942
+ /**
943
+ * @param {?proto.supervisor.NotifyResponse|undefined} value
944
+ * @return {!proto.supervisor.RespondRequest} returns this
945
+ */
946
+ proto.supervisor.RespondRequest.prototype.setResponse = function(value) {
947
+ return jspb.Message.setWrapperField(this, 2, value);
948
+ };
949
+
950
+
951
+ /**
952
+ * Clears the message field making it undefined.
953
+ * @return {!proto.supervisor.RespondRequest} returns this
954
+ */
955
+ proto.supervisor.RespondRequest.prototype.clearResponse = function() {
956
+ return this.setResponse(undefined);
957
+ };
958
+
959
+
960
+ /**
961
+ * Returns whether this field is set.
962
+ * @return {boolean}
963
+ */
964
+ proto.supervisor.RespondRequest.prototype.hasResponse = function() {
965
+ return jspb.Message.getField(this, 2) != null;
966
+ };
967
+
968
+
969
+
970
+
971
+
972
+ if (jspb.Message.GENERATE_TO_OBJECT) {
973
+ /**
974
+ * Creates an object representation of this proto.
975
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
976
+ * Optional fields that are not set will be set to undefined.
977
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
978
+ * For the list of reserved names please see:
979
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
980
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
981
+ * JSPB instance for transitional soy proto support:
982
+ * http://goto/soy-param-migration
983
+ * @return {!Object}
984
+ */
985
+ proto.supervisor.RespondResponse.prototype.toObject = function(opt_includeInstance) {
986
+ return proto.supervisor.RespondResponse.toObject(opt_includeInstance, this);
987
+ };
988
+
989
+
990
+ /**
991
+ * Static version of the {@see toObject} method.
992
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
993
+ * the JSPB instance for transitional soy proto support:
994
+ * http://goto/soy-param-migration
995
+ * @param {!proto.supervisor.RespondResponse} msg The msg instance to transform.
996
+ * @return {!Object}
997
+ * @suppress {unusedLocalVariables} f is only used for nested messages
998
+ */
999
+ proto.supervisor.RespondResponse.toObject = function(includeInstance, msg) {
1000
+ var f, obj = {
1001
+
1002
+ };
1003
+
1004
+ if (includeInstance) {
1005
+ obj.$jspbMessageInstance = msg;
1006
+ }
1007
+ return obj;
1008
+ };
1009
+ }
1010
+
1011
+
1012
+ /**
1013
+ * Deserializes binary data (in protobuf wire format).
1014
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1015
+ * @return {!proto.supervisor.RespondResponse}
1016
+ */
1017
+ proto.supervisor.RespondResponse.deserializeBinary = function(bytes) {
1018
+ var reader = new jspb.BinaryReader(bytes);
1019
+ var msg = new proto.supervisor.RespondResponse;
1020
+ return proto.supervisor.RespondResponse.deserializeBinaryFromReader(msg, reader);
1021
+ };
1022
+
1023
+
1024
+ /**
1025
+ * Deserializes binary data (in protobuf wire format) from the
1026
+ * given reader into the given message object.
1027
+ * @param {!proto.supervisor.RespondResponse} msg The message object to deserialize into.
1028
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1029
+ * @return {!proto.supervisor.RespondResponse}
1030
+ */
1031
+ proto.supervisor.RespondResponse.deserializeBinaryFromReader = function(msg, reader) {
1032
+ while (reader.nextField()) {
1033
+ if (reader.isEndGroup()) {
1034
+ break;
1035
+ }
1036
+ var field = reader.getFieldNumber();
1037
+ switch (field) {
1038
+ default:
1039
+ reader.skipField();
1040
+ break;
1041
+ }
1042
+ }
1043
+ return msg;
1044
+ };
1045
+
1046
+
1047
+ /**
1048
+ * Serializes the message to binary data (in protobuf wire format).
1049
+ * @return {!Uint8Array}
1050
+ */
1051
+ proto.supervisor.RespondResponse.prototype.serializeBinary = function() {
1052
+ var writer = new jspb.BinaryWriter();
1053
+ proto.supervisor.RespondResponse.serializeBinaryToWriter(this, writer);
1054
+ return writer.getResultBuffer();
1055
+ };
1056
+
1057
+
1058
+ /**
1059
+ * Serializes the given message to binary data (in protobuf wire
1060
+ * format), writing to the given BinaryWriter.
1061
+ * @param {!proto.supervisor.RespondResponse} message
1062
+ * @param {!jspb.BinaryWriter} writer
1063
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1064
+ */
1065
+ proto.supervisor.RespondResponse.serializeBinaryToWriter = function(message, writer) {
1066
+ var f = undefined;
1067
+ };
1068
+
1069
+
1070
+ goog.object.extend(exports, proto.supervisor);