@gitpod/supervisor-api-grpc 0.1.5-se-workspace-id.35 → 0.1.5-se-init.1

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