@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.
package/lib/port_pb.js ADDED
@@ -0,0 +1,1672 @@
1
+ // source: port.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.AutoTunnelRequest', null, global);
25
+ goog.exportSymbol('proto.supervisor.AutoTunnelResponse', null, global);
26
+ goog.exportSymbol('proto.supervisor.CloseTunnelRequest', null, global);
27
+ goog.exportSymbol('proto.supervisor.CloseTunnelResponse', null, global);
28
+ goog.exportSymbol('proto.supervisor.EstablishTunnelRequest', null, global);
29
+ goog.exportSymbol('proto.supervisor.EstablishTunnelRequest.OutputCase', null, global);
30
+ goog.exportSymbol('proto.supervisor.EstablishTunnelResponse', null, global);
31
+ goog.exportSymbol('proto.supervisor.RetryAutoExposeRequest', null, global);
32
+ goog.exportSymbol('proto.supervisor.RetryAutoExposeResponse', null, global);
33
+ goog.exportSymbol('proto.supervisor.TunnelPortRequest', null, global);
34
+ goog.exportSymbol('proto.supervisor.TunnelPortResponse', null, global);
35
+ goog.exportSymbol('proto.supervisor.TunnelVisiblity', null, global);
36
+ /**
37
+ * Generated by JsPbCodeGenerator.
38
+ * @param {Array=} opt_data Optional initial data array, typically from a
39
+ * server response, or constructed directly in Javascript. The array is used
40
+ * in place and becomes part of the constructed object. It is not cloned.
41
+ * If no data is provided, the constructed object will be empty, but still
42
+ * valid.
43
+ * @extends {jspb.Message}
44
+ * @constructor
45
+ */
46
+ proto.supervisor.TunnelPortRequest = function(opt_data) {
47
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
48
+ };
49
+ goog.inherits(proto.supervisor.TunnelPortRequest, jspb.Message);
50
+ if (goog.DEBUG && !COMPILED) {
51
+ /**
52
+ * @public
53
+ * @override
54
+ */
55
+ proto.supervisor.TunnelPortRequest.displayName = 'proto.supervisor.TunnelPortRequest';
56
+ }
57
+ /**
58
+ * Generated by JsPbCodeGenerator.
59
+ * @param {Array=} opt_data Optional initial data array, typically from a
60
+ * server response, or constructed directly in Javascript. The array is used
61
+ * in place and becomes part of the constructed object. It is not cloned.
62
+ * If no data is provided, the constructed object will be empty, but still
63
+ * valid.
64
+ * @extends {jspb.Message}
65
+ * @constructor
66
+ */
67
+ proto.supervisor.TunnelPortResponse = function(opt_data) {
68
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
69
+ };
70
+ goog.inherits(proto.supervisor.TunnelPortResponse, jspb.Message);
71
+ if (goog.DEBUG && !COMPILED) {
72
+ /**
73
+ * @public
74
+ * @override
75
+ */
76
+ proto.supervisor.TunnelPortResponse.displayName = 'proto.supervisor.TunnelPortResponse';
77
+ }
78
+ /**
79
+ * Generated by JsPbCodeGenerator.
80
+ * @param {Array=} opt_data Optional initial data array, typically from a
81
+ * server response, or constructed directly in Javascript. The array is used
82
+ * in place and becomes part of the constructed object. It is not cloned.
83
+ * If no data is provided, the constructed object will be empty, but still
84
+ * valid.
85
+ * @extends {jspb.Message}
86
+ * @constructor
87
+ */
88
+ proto.supervisor.CloseTunnelRequest = function(opt_data) {
89
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
90
+ };
91
+ goog.inherits(proto.supervisor.CloseTunnelRequest, jspb.Message);
92
+ if (goog.DEBUG && !COMPILED) {
93
+ /**
94
+ * @public
95
+ * @override
96
+ */
97
+ proto.supervisor.CloseTunnelRequest.displayName = 'proto.supervisor.CloseTunnelRequest';
98
+ }
99
+ /**
100
+ * Generated by JsPbCodeGenerator.
101
+ * @param {Array=} opt_data Optional initial data array, typically from a
102
+ * server response, or constructed directly in Javascript. The array is used
103
+ * in place and becomes part of the constructed object. It is not cloned.
104
+ * If no data is provided, the constructed object will be empty, but still
105
+ * valid.
106
+ * @extends {jspb.Message}
107
+ * @constructor
108
+ */
109
+ proto.supervisor.CloseTunnelResponse = function(opt_data) {
110
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
111
+ };
112
+ goog.inherits(proto.supervisor.CloseTunnelResponse, jspb.Message);
113
+ if (goog.DEBUG && !COMPILED) {
114
+ /**
115
+ * @public
116
+ * @override
117
+ */
118
+ proto.supervisor.CloseTunnelResponse.displayName = 'proto.supervisor.CloseTunnelResponse';
119
+ }
120
+ /**
121
+ * Generated by JsPbCodeGenerator.
122
+ * @param {Array=} opt_data Optional initial data array, typically from a
123
+ * server response, or constructed directly in Javascript. The array is used
124
+ * in place and becomes part of the constructed object. It is not cloned.
125
+ * If no data is provided, the constructed object will be empty, but still
126
+ * valid.
127
+ * @extends {jspb.Message}
128
+ * @constructor
129
+ */
130
+ proto.supervisor.EstablishTunnelRequest = function(opt_data) {
131
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.supervisor.EstablishTunnelRequest.oneofGroups_);
132
+ };
133
+ goog.inherits(proto.supervisor.EstablishTunnelRequest, jspb.Message);
134
+ if (goog.DEBUG && !COMPILED) {
135
+ /**
136
+ * @public
137
+ * @override
138
+ */
139
+ proto.supervisor.EstablishTunnelRequest.displayName = 'proto.supervisor.EstablishTunnelRequest';
140
+ }
141
+ /**
142
+ * Generated by JsPbCodeGenerator.
143
+ * @param {Array=} opt_data Optional initial data array, typically from a
144
+ * server response, or constructed directly in Javascript. The array is used
145
+ * in place and becomes part of the constructed object. It is not cloned.
146
+ * If no data is provided, the constructed object will be empty, but still
147
+ * valid.
148
+ * @extends {jspb.Message}
149
+ * @constructor
150
+ */
151
+ proto.supervisor.EstablishTunnelResponse = function(opt_data) {
152
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
153
+ };
154
+ goog.inherits(proto.supervisor.EstablishTunnelResponse, jspb.Message);
155
+ if (goog.DEBUG && !COMPILED) {
156
+ /**
157
+ * @public
158
+ * @override
159
+ */
160
+ proto.supervisor.EstablishTunnelResponse.displayName = 'proto.supervisor.EstablishTunnelResponse';
161
+ }
162
+ /**
163
+ * Generated by JsPbCodeGenerator.
164
+ * @param {Array=} opt_data Optional initial data array, typically from a
165
+ * server response, or constructed directly in Javascript. The array is used
166
+ * in place and becomes part of the constructed object. It is not cloned.
167
+ * If no data is provided, the constructed object will be empty, but still
168
+ * valid.
169
+ * @extends {jspb.Message}
170
+ * @constructor
171
+ */
172
+ proto.supervisor.AutoTunnelRequest = function(opt_data) {
173
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
174
+ };
175
+ goog.inherits(proto.supervisor.AutoTunnelRequest, jspb.Message);
176
+ if (goog.DEBUG && !COMPILED) {
177
+ /**
178
+ * @public
179
+ * @override
180
+ */
181
+ proto.supervisor.AutoTunnelRequest.displayName = 'proto.supervisor.AutoTunnelRequest';
182
+ }
183
+ /**
184
+ * Generated by JsPbCodeGenerator.
185
+ * @param {Array=} opt_data Optional initial data array, typically from a
186
+ * server response, or constructed directly in Javascript. The array is used
187
+ * in place and becomes part of the constructed object. It is not cloned.
188
+ * If no data is provided, the constructed object will be empty, but still
189
+ * valid.
190
+ * @extends {jspb.Message}
191
+ * @constructor
192
+ */
193
+ proto.supervisor.AutoTunnelResponse = function(opt_data) {
194
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
195
+ };
196
+ goog.inherits(proto.supervisor.AutoTunnelResponse, jspb.Message);
197
+ if (goog.DEBUG && !COMPILED) {
198
+ /**
199
+ * @public
200
+ * @override
201
+ */
202
+ proto.supervisor.AutoTunnelResponse.displayName = 'proto.supervisor.AutoTunnelResponse';
203
+ }
204
+ /**
205
+ * Generated by JsPbCodeGenerator.
206
+ * @param {Array=} opt_data Optional initial data array, typically from a
207
+ * server response, or constructed directly in Javascript. The array is used
208
+ * in place and becomes part of the constructed object. It is not cloned.
209
+ * If no data is provided, the constructed object will be empty, but still
210
+ * valid.
211
+ * @extends {jspb.Message}
212
+ * @constructor
213
+ */
214
+ proto.supervisor.RetryAutoExposeRequest = function(opt_data) {
215
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
216
+ };
217
+ goog.inherits(proto.supervisor.RetryAutoExposeRequest, jspb.Message);
218
+ if (goog.DEBUG && !COMPILED) {
219
+ /**
220
+ * @public
221
+ * @override
222
+ */
223
+ proto.supervisor.RetryAutoExposeRequest.displayName = 'proto.supervisor.RetryAutoExposeRequest';
224
+ }
225
+ /**
226
+ * Generated by JsPbCodeGenerator.
227
+ * @param {Array=} opt_data Optional initial data array, typically from a
228
+ * server response, or constructed directly in Javascript. The array is used
229
+ * in place and becomes part of the constructed object. It is not cloned.
230
+ * If no data is provided, the constructed object will be empty, but still
231
+ * valid.
232
+ * @extends {jspb.Message}
233
+ * @constructor
234
+ */
235
+ proto.supervisor.RetryAutoExposeResponse = function(opt_data) {
236
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
237
+ };
238
+ goog.inherits(proto.supervisor.RetryAutoExposeResponse, jspb.Message);
239
+ if (goog.DEBUG && !COMPILED) {
240
+ /**
241
+ * @public
242
+ * @override
243
+ */
244
+ proto.supervisor.RetryAutoExposeResponse.displayName = 'proto.supervisor.RetryAutoExposeResponse';
245
+ }
246
+
247
+
248
+
249
+ if (jspb.Message.GENERATE_TO_OBJECT) {
250
+ /**
251
+ * Creates an object representation of this proto.
252
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
253
+ * Optional fields that are not set will be set to undefined.
254
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
255
+ * For the list of reserved names please see:
256
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
257
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
258
+ * JSPB instance for transitional soy proto support:
259
+ * http://goto/soy-param-migration
260
+ * @return {!Object}
261
+ */
262
+ proto.supervisor.TunnelPortRequest.prototype.toObject = function(opt_includeInstance) {
263
+ return proto.supervisor.TunnelPortRequest.toObject(opt_includeInstance, this);
264
+ };
265
+
266
+
267
+ /**
268
+ * Static version of the {@see toObject} method.
269
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
270
+ * the JSPB instance for transitional soy proto support:
271
+ * http://goto/soy-param-migration
272
+ * @param {!proto.supervisor.TunnelPortRequest} msg The msg instance to transform.
273
+ * @return {!Object}
274
+ * @suppress {unusedLocalVariables} f is only used for nested messages
275
+ */
276
+ proto.supervisor.TunnelPortRequest.toObject = function(includeInstance, msg) {
277
+ var f, obj = {
278
+ port: jspb.Message.getFieldWithDefault(msg, 1, 0),
279
+ targetPort: jspb.Message.getFieldWithDefault(msg, 2, 0),
280
+ visibility: jspb.Message.getFieldWithDefault(msg, 3, 0),
281
+ clientId: jspb.Message.getFieldWithDefault(msg, 4, "")
282
+ };
283
+
284
+ if (includeInstance) {
285
+ obj.$jspbMessageInstance = msg;
286
+ }
287
+ return obj;
288
+ };
289
+ }
290
+
291
+
292
+ /**
293
+ * Deserializes binary data (in protobuf wire format).
294
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
295
+ * @return {!proto.supervisor.TunnelPortRequest}
296
+ */
297
+ proto.supervisor.TunnelPortRequest.deserializeBinary = function(bytes) {
298
+ var reader = new jspb.BinaryReader(bytes);
299
+ var msg = new proto.supervisor.TunnelPortRequest;
300
+ return proto.supervisor.TunnelPortRequest.deserializeBinaryFromReader(msg, reader);
301
+ };
302
+
303
+
304
+ /**
305
+ * Deserializes binary data (in protobuf wire format) from the
306
+ * given reader into the given message object.
307
+ * @param {!proto.supervisor.TunnelPortRequest} msg The message object to deserialize into.
308
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
309
+ * @return {!proto.supervisor.TunnelPortRequest}
310
+ */
311
+ proto.supervisor.TunnelPortRequest.deserializeBinaryFromReader = function(msg, reader) {
312
+ while (reader.nextField()) {
313
+ if (reader.isEndGroup()) {
314
+ break;
315
+ }
316
+ var field = reader.getFieldNumber();
317
+ switch (field) {
318
+ case 1:
319
+ var value = /** @type {number} */ (reader.readUint32());
320
+ msg.setPort(value);
321
+ break;
322
+ case 2:
323
+ var value = /** @type {number} */ (reader.readUint32());
324
+ msg.setTargetPort(value);
325
+ break;
326
+ case 3:
327
+ var value = /** @type {!proto.supervisor.TunnelVisiblity} */ (reader.readEnum());
328
+ msg.setVisibility(value);
329
+ break;
330
+ case 4:
331
+ var value = /** @type {string} */ (reader.readString());
332
+ msg.setClientId(value);
333
+ break;
334
+ default:
335
+ reader.skipField();
336
+ break;
337
+ }
338
+ }
339
+ return msg;
340
+ };
341
+
342
+
343
+ /**
344
+ * Serializes the message to binary data (in protobuf wire format).
345
+ * @return {!Uint8Array}
346
+ */
347
+ proto.supervisor.TunnelPortRequest.prototype.serializeBinary = function() {
348
+ var writer = new jspb.BinaryWriter();
349
+ proto.supervisor.TunnelPortRequest.serializeBinaryToWriter(this, writer);
350
+ return writer.getResultBuffer();
351
+ };
352
+
353
+
354
+ /**
355
+ * Serializes the given message to binary data (in protobuf wire
356
+ * format), writing to the given BinaryWriter.
357
+ * @param {!proto.supervisor.TunnelPortRequest} message
358
+ * @param {!jspb.BinaryWriter} writer
359
+ * @suppress {unusedLocalVariables} f is only used for nested messages
360
+ */
361
+ proto.supervisor.TunnelPortRequest.serializeBinaryToWriter = function(message, writer) {
362
+ var f = undefined;
363
+ f = message.getPort();
364
+ if (f !== 0) {
365
+ writer.writeUint32(
366
+ 1,
367
+ f
368
+ );
369
+ }
370
+ f = message.getTargetPort();
371
+ if (f !== 0) {
372
+ writer.writeUint32(
373
+ 2,
374
+ f
375
+ );
376
+ }
377
+ f = message.getVisibility();
378
+ if (f !== 0.0) {
379
+ writer.writeEnum(
380
+ 3,
381
+ f
382
+ );
383
+ }
384
+ f = message.getClientId();
385
+ if (f.length > 0) {
386
+ writer.writeString(
387
+ 4,
388
+ f
389
+ );
390
+ }
391
+ };
392
+
393
+
394
+ /**
395
+ * optional uint32 port = 1;
396
+ * @return {number}
397
+ */
398
+ proto.supervisor.TunnelPortRequest.prototype.getPort = function() {
399
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
400
+ };
401
+
402
+
403
+ /**
404
+ * @param {number} value
405
+ * @return {!proto.supervisor.TunnelPortRequest} returns this
406
+ */
407
+ proto.supervisor.TunnelPortRequest.prototype.setPort = function(value) {
408
+ return jspb.Message.setProto3IntField(this, 1, value);
409
+ };
410
+
411
+
412
+ /**
413
+ * optional uint32 target_port = 2;
414
+ * @return {number}
415
+ */
416
+ proto.supervisor.TunnelPortRequest.prototype.getTargetPort = function() {
417
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
418
+ };
419
+
420
+
421
+ /**
422
+ * @param {number} value
423
+ * @return {!proto.supervisor.TunnelPortRequest} returns this
424
+ */
425
+ proto.supervisor.TunnelPortRequest.prototype.setTargetPort = function(value) {
426
+ return jspb.Message.setProto3IntField(this, 2, value);
427
+ };
428
+
429
+
430
+ /**
431
+ * optional TunnelVisiblity visibility = 3;
432
+ * @return {!proto.supervisor.TunnelVisiblity}
433
+ */
434
+ proto.supervisor.TunnelPortRequest.prototype.getVisibility = function() {
435
+ return /** @type {!proto.supervisor.TunnelVisiblity} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
436
+ };
437
+
438
+
439
+ /**
440
+ * @param {!proto.supervisor.TunnelVisiblity} value
441
+ * @return {!proto.supervisor.TunnelPortRequest} returns this
442
+ */
443
+ proto.supervisor.TunnelPortRequest.prototype.setVisibility = function(value) {
444
+ return jspb.Message.setProto3EnumField(this, 3, value);
445
+ };
446
+
447
+
448
+ /**
449
+ * optional string client_id = 4;
450
+ * @return {string}
451
+ */
452
+ proto.supervisor.TunnelPortRequest.prototype.getClientId = function() {
453
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
454
+ };
455
+
456
+
457
+ /**
458
+ * @param {string} value
459
+ * @return {!proto.supervisor.TunnelPortRequest} returns this
460
+ */
461
+ proto.supervisor.TunnelPortRequest.prototype.setClientId = function(value) {
462
+ return jspb.Message.setProto3StringField(this, 4, value);
463
+ };
464
+
465
+
466
+
467
+
468
+
469
+ if (jspb.Message.GENERATE_TO_OBJECT) {
470
+ /**
471
+ * Creates an object representation of this proto.
472
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
473
+ * Optional fields that are not set will be set to undefined.
474
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
475
+ * For the list of reserved names please see:
476
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
477
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
478
+ * JSPB instance for transitional soy proto support:
479
+ * http://goto/soy-param-migration
480
+ * @return {!Object}
481
+ */
482
+ proto.supervisor.TunnelPortResponse.prototype.toObject = function(opt_includeInstance) {
483
+ return proto.supervisor.TunnelPortResponse.toObject(opt_includeInstance, this);
484
+ };
485
+
486
+
487
+ /**
488
+ * Static version of the {@see toObject} method.
489
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
490
+ * the JSPB instance for transitional soy proto support:
491
+ * http://goto/soy-param-migration
492
+ * @param {!proto.supervisor.TunnelPortResponse} msg The msg instance to transform.
493
+ * @return {!Object}
494
+ * @suppress {unusedLocalVariables} f is only used for nested messages
495
+ */
496
+ proto.supervisor.TunnelPortResponse.toObject = function(includeInstance, msg) {
497
+ var f, obj = {
498
+
499
+ };
500
+
501
+ if (includeInstance) {
502
+ obj.$jspbMessageInstance = msg;
503
+ }
504
+ return obj;
505
+ };
506
+ }
507
+
508
+
509
+ /**
510
+ * Deserializes binary data (in protobuf wire format).
511
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
512
+ * @return {!proto.supervisor.TunnelPortResponse}
513
+ */
514
+ proto.supervisor.TunnelPortResponse.deserializeBinary = function(bytes) {
515
+ var reader = new jspb.BinaryReader(bytes);
516
+ var msg = new proto.supervisor.TunnelPortResponse;
517
+ return proto.supervisor.TunnelPortResponse.deserializeBinaryFromReader(msg, reader);
518
+ };
519
+
520
+
521
+ /**
522
+ * Deserializes binary data (in protobuf wire format) from the
523
+ * given reader into the given message object.
524
+ * @param {!proto.supervisor.TunnelPortResponse} msg The message object to deserialize into.
525
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
526
+ * @return {!proto.supervisor.TunnelPortResponse}
527
+ */
528
+ proto.supervisor.TunnelPortResponse.deserializeBinaryFromReader = function(msg, reader) {
529
+ while (reader.nextField()) {
530
+ if (reader.isEndGroup()) {
531
+ break;
532
+ }
533
+ var field = reader.getFieldNumber();
534
+ switch (field) {
535
+ default:
536
+ reader.skipField();
537
+ break;
538
+ }
539
+ }
540
+ return msg;
541
+ };
542
+
543
+
544
+ /**
545
+ * Serializes the message to binary data (in protobuf wire format).
546
+ * @return {!Uint8Array}
547
+ */
548
+ proto.supervisor.TunnelPortResponse.prototype.serializeBinary = function() {
549
+ var writer = new jspb.BinaryWriter();
550
+ proto.supervisor.TunnelPortResponse.serializeBinaryToWriter(this, writer);
551
+ return writer.getResultBuffer();
552
+ };
553
+
554
+
555
+ /**
556
+ * Serializes the given message to binary data (in protobuf wire
557
+ * format), writing to the given BinaryWriter.
558
+ * @param {!proto.supervisor.TunnelPortResponse} message
559
+ * @param {!jspb.BinaryWriter} writer
560
+ * @suppress {unusedLocalVariables} f is only used for nested messages
561
+ */
562
+ proto.supervisor.TunnelPortResponse.serializeBinaryToWriter = function(message, writer) {
563
+ var f = undefined;
564
+ };
565
+
566
+
567
+
568
+
569
+
570
+ if (jspb.Message.GENERATE_TO_OBJECT) {
571
+ /**
572
+ * Creates an object representation of this proto.
573
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
574
+ * Optional fields that are not set will be set to undefined.
575
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
576
+ * For the list of reserved names please see:
577
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
578
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
579
+ * JSPB instance for transitional soy proto support:
580
+ * http://goto/soy-param-migration
581
+ * @return {!Object}
582
+ */
583
+ proto.supervisor.CloseTunnelRequest.prototype.toObject = function(opt_includeInstance) {
584
+ return proto.supervisor.CloseTunnelRequest.toObject(opt_includeInstance, this);
585
+ };
586
+
587
+
588
+ /**
589
+ * Static version of the {@see toObject} method.
590
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
591
+ * the JSPB instance for transitional soy proto support:
592
+ * http://goto/soy-param-migration
593
+ * @param {!proto.supervisor.CloseTunnelRequest} msg The msg instance to transform.
594
+ * @return {!Object}
595
+ * @suppress {unusedLocalVariables} f is only used for nested messages
596
+ */
597
+ proto.supervisor.CloseTunnelRequest.toObject = function(includeInstance, msg) {
598
+ var f, obj = {
599
+ port: jspb.Message.getFieldWithDefault(msg, 1, 0)
600
+ };
601
+
602
+ if (includeInstance) {
603
+ obj.$jspbMessageInstance = msg;
604
+ }
605
+ return obj;
606
+ };
607
+ }
608
+
609
+
610
+ /**
611
+ * Deserializes binary data (in protobuf wire format).
612
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
613
+ * @return {!proto.supervisor.CloseTunnelRequest}
614
+ */
615
+ proto.supervisor.CloseTunnelRequest.deserializeBinary = function(bytes) {
616
+ var reader = new jspb.BinaryReader(bytes);
617
+ var msg = new proto.supervisor.CloseTunnelRequest;
618
+ return proto.supervisor.CloseTunnelRequest.deserializeBinaryFromReader(msg, reader);
619
+ };
620
+
621
+
622
+ /**
623
+ * Deserializes binary data (in protobuf wire format) from the
624
+ * given reader into the given message object.
625
+ * @param {!proto.supervisor.CloseTunnelRequest} msg The message object to deserialize into.
626
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
627
+ * @return {!proto.supervisor.CloseTunnelRequest}
628
+ */
629
+ proto.supervisor.CloseTunnelRequest.deserializeBinaryFromReader = function(msg, reader) {
630
+ while (reader.nextField()) {
631
+ if (reader.isEndGroup()) {
632
+ break;
633
+ }
634
+ var field = reader.getFieldNumber();
635
+ switch (field) {
636
+ case 1:
637
+ var value = /** @type {number} */ (reader.readUint32());
638
+ msg.setPort(value);
639
+ break;
640
+ default:
641
+ reader.skipField();
642
+ break;
643
+ }
644
+ }
645
+ return msg;
646
+ };
647
+
648
+
649
+ /**
650
+ * Serializes the message to binary data (in protobuf wire format).
651
+ * @return {!Uint8Array}
652
+ */
653
+ proto.supervisor.CloseTunnelRequest.prototype.serializeBinary = function() {
654
+ var writer = new jspb.BinaryWriter();
655
+ proto.supervisor.CloseTunnelRequest.serializeBinaryToWriter(this, writer);
656
+ return writer.getResultBuffer();
657
+ };
658
+
659
+
660
+ /**
661
+ * Serializes the given message to binary data (in protobuf wire
662
+ * format), writing to the given BinaryWriter.
663
+ * @param {!proto.supervisor.CloseTunnelRequest} message
664
+ * @param {!jspb.BinaryWriter} writer
665
+ * @suppress {unusedLocalVariables} f is only used for nested messages
666
+ */
667
+ proto.supervisor.CloseTunnelRequest.serializeBinaryToWriter = function(message, writer) {
668
+ var f = undefined;
669
+ f = message.getPort();
670
+ if (f !== 0) {
671
+ writer.writeUint32(
672
+ 1,
673
+ f
674
+ );
675
+ }
676
+ };
677
+
678
+
679
+ /**
680
+ * optional uint32 port = 1;
681
+ * @return {number}
682
+ */
683
+ proto.supervisor.CloseTunnelRequest.prototype.getPort = function() {
684
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
685
+ };
686
+
687
+
688
+ /**
689
+ * @param {number} value
690
+ * @return {!proto.supervisor.CloseTunnelRequest} returns this
691
+ */
692
+ proto.supervisor.CloseTunnelRequest.prototype.setPort = function(value) {
693
+ return jspb.Message.setProto3IntField(this, 1, value);
694
+ };
695
+
696
+
697
+
698
+
699
+
700
+ if (jspb.Message.GENERATE_TO_OBJECT) {
701
+ /**
702
+ * Creates an object representation of this proto.
703
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
704
+ * Optional fields that are not set will be set to undefined.
705
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
706
+ * For the list of reserved names please see:
707
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
708
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
709
+ * JSPB instance for transitional soy proto support:
710
+ * http://goto/soy-param-migration
711
+ * @return {!Object}
712
+ */
713
+ proto.supervisor.CloseTunnelResponse.prototype.toObject = function(opt_includeInstance) {
714
+ return proto.supervisor.CloseTunnelResponse.toObject(opt_includeInstance, this);
715
+ };
716
+
717
+
718
+ /**
719
+ * Static version of the {@see toObject} method.
720
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
721
+ * the JSPB instance for transitional soy proto support:
722
+ * http://goto/soy-param-migration
723
+ * @param {!proto.supervisor.CloseTunnelResponse} msg The msg instance to transform.
724
+ * @return {!Object}
725
+ * @suppress {unusedLocalVariables} f is only used for nested messages
726
+ */
727
+ proto.supervisor.CloseTunnelResponse.toObject = function(includeInstance, msg) {
728
+ var f, obj = {
729
+
730
+ };
731
+
732
+ if (includeInstance) {
733
+ obj.$jspbMessageInstance = msg;
734
+ }
735
+ return obj;
736
+ };
737
+ }
738
+
739
+
740
+ /**
741
+ * Deserializes binary data (in protobuf wire format).
742
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
743
+ * @return {!proto.supervisor.CloseTunnelResponse}
744
+ */
745
+ proto.supervisor.CloseTunnelResponse.deserializeBinary = function(bytes) {
746
+ var reader = new jspb.BinaryReader(bytes);
747
+ var msg = new proto.supervisor.CloseTunnelResponse;
748
+ return proto.supervisor.CloseTunnelResponse.deserializeBinaryFromReader(msg, reader);
749
+ };
750
+
751
+
752
+ /**
753
+ * Deserializes binary data (in protobuf wire format) from the
754
+ * given reader into the given message object.
755
+ * @param {!proto.supervisor.CloseTunnelResponse} msg The message object to deserialize into.
756
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
757
+ * @return {!proto.supervisor.CloseTunnelResponse}
758
+ */
759
+ proto.supervisor.CloseTunnelResponse.deserializeBinaryFromReader = function(msg, reader) {
760
+ while (reader.nextField()) {
761
+ if (reader.isEndGroup()) {
762
+ break;
763
+ }
764
+ var field = reader.getFieldNumber();
765
+ switch (field) {
766
+ default:
767
+ reader.skipField();
768
+ break;
769
+ }
770
+ }
771
+ return msg;
772
+ };
773
+
774
+
775
+ /**
776
+ * Serializes the message to binary data (in protobuf wire format).
777
+ * @return {!Uint8Array}
778
+ */
779
+ proto.supervisor.CloseTunnelResponse.prototype.serializeBinary = function() {
780
+ var writer = new jspb.BinaryWriter();
781
+ proto.supervisor.CloseTunnelResponse.serializeBinaryToWriter(this, writer);
782
+ return writer.getResultBuffer();
783
+ };
784
+
785
+
786
+ /**
787
+ * Serializes the given message to binary data (in protobuf wire
788
+ * format), writing to the given BinaryWriter.
789
+ * @param {!proto.supervisor.CloseTunnelResponse} message
790
+ * @param {!jspb.BinaryWriter} writer
791
+ * @suppress {unusedLocalVariables} f is only used for nested messages
792
+ */
793
+ proto.supervisor.CloseTunnelResponse.serializeBinaryToWriter = function(message, writer) {
794
+ var f = undefined;
795
+ };
796
+
797
+
798
+
799
+ /**
800
+ * Oneof group definitions for this message. Each group defines the field
801
+ * numbers belonging to that group. When of these fields' value is set, all
802
+ * other fields in the group are cleared. During deserialization, if multiple
803
+ * fields are encountered for a group, only the last value seen will be kept.
804
+ * @private {!Array<!Array<number>>}
805
+ * @const
806
+ */
807
+ proto.supervisor.EstablishTunnelRequest.oneofGroups_ = [[1,2]];
808
+
809
+ /**
810
+ * @enum {number}
811
+ */
812
+ proto.supervisor.EstablishTunnelRequest.OutputCase = {
813
+ OUTPUT_NOT_SET: 0,
814
+ DESC: 1,
815
+ DATA: 2
816
+ };
817
+
818
+ /**
819
+ * @return {proto.supervisor.EstablishTunnelRequest.OutputCase}
820
+ */
821
+ proto.supervisor.EstablishTunnelRequest.prototype.getOutputCase = function() {
822
+ return /** @type {proto.supervisor.EstablishTunnelRequest.OutputCase} */(jspb.Message.computeOneofCase(this, proto.supervisor.EstablishTunnelRequest.oneofGroups_[0]));
823
+ };
824
+
825
+
826
+
827
+ if (jspb.Message.GENERATE_TO_OBJECT) {
828
+ /**
829
+ * Creates an object representation of this proto.
830
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
831
+ * Optional fields that are not set will be set to undefined.
832
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
833
+ * For the list of reserved names please see:
834
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
835
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
836
+ * JSPB instance for transitional soy proto support:
837
+ * http://goto/soy-param-migration
838
+ * @return {!Object}
839
+ */
840
+ proto.supervisor.EstablishTunnelRequest.prototype.toObject = function(opt_includeInstance) {
841
+ return proto.supervisor.EstablishTunnelRequest.toObject(opt_includeInstance, this);
842
+ };
843
+
844
+
845
+ /**
846
+ * Static version of the {@see toObject} method.
847
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
848
+ * the JSPB instance for transitional soy proto support:
849
+ * http://goto/soy-param-migration
850
+ * @param {!proto.supervisor.EstablishTunnelRequest} msg The msg instance to transform.
851
+ * @return {!Object}
852
+ * @suppress {unusedLocalVariables} f is only used for nested messages
853
+ */
854
+ proto.supervisor.EstablishTunnelRequest.toObject = function(includeInstance, msg) {
855
+ var f, obj = {
856
+ desc: (f = msg.getDesc()) && proto.supervisor.TunnelPortRequest.toObject(includeInstance, f),
857
+ data: msg.getData_asB64()
858
+ };
859
+
860
+ if (includeInstance) {
861
+ obj.$jspbMessageInstance = msg;
862
+ }
863
+ return obj;
864
+ };
865
+ }
866
+
867
+
868
+ /**
869
+ * Deserializes binary data (in protobuf wire format).
870
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
871
+ * @return {!proto.supervisor.EstablishTunnelRequest}
872
+ */
873
+ proto.supervisor.EstablishTunnelRequest.deserializeBinary = function(bytes) {
874
+ var reader = new jspb.BinaryReader(bytes);
875
+ var msg = new proto.supervisor.EstablishTunnelRequest;
876
+ return proto.supervisor.EstablishTunnelRequest.deserializeBinaryFromReader(msg, reader);
877
+ };
878
+
879
+
880
+ /**
881
+ * Deserializes binary data (in protobuf wire format) from the
882
+ * given reader into the given message object.
883
+ * @param {!proto.supervisor.EstablishTunnelRequest} msg The message object to deserialize into.
884
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
885
+ * @return {!proto.supervisor.EstablishTunnelRequest}
886
+ */
887
+ proto.supervisor.EstablishTunnelRequest.deserializeBinaryFromReader = function(msg, reader) {
888
+ while (reader.nextField()) {
889
+ if (reader.isEndGroup()) {
890
+ break;
891
+ }
892
+ var field = reader.getFieldNumber();
893
+ switch (field) {
894
+ case 1:
895
+ var value = new proto.supervisor.TunnelPortRequest;
896
+ reader.readMessage(value,proto.supervisor.TunnelPortRequest.deserializeBinaryFromReader);
897
+ msg.setDesc(value);
898
+ break;
899
+ case 2:
900
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
901
+ msg.setData(value);
902
+ break;
903
+ default:
904
+ reader.skipField();
905
+ break;
906
+ }
907
+ }
908
+ return msg;
909
+ };
910
+
911
+
912
+ /**
913
+ * Serializes the message to binary data (in protobuf wire format).
914
+ * @return {!Uint8Array}
915
+ */
916
+ proto.supervisor.EstablishTunnelRequest.prototype.serializeBinary = function() {
917
+ var writer = new jspb.BinaryWriter();
918
+ proto.supervisor.EstablishTunnelRequest.serializeBinaryToWriter(this, writer);
919
+ return writer.getResultBuffer();
920
+ };
921
+
922
+
923
+ /**
924
+ * Serializes the given message to binary data (in protobuf wire
925
+ * format), writing to the given BinaryWriter.
926
+ * @param {!proto.supervisor.EstablishTunnelRequest} message
927
+ * @param {!jspb.BinaryWriter} writer
928
+ * @suppress {unusedLocalVariables} f is only used for nested messages
929
+ */
930
+ proto.supervisor.EstablishTunnelRequest.serializeBinaryToWriter = function(message, writer) {
931
+ var f = undefined;
932
+ f = message.getDesc();
933
+ if (f != null) {
934
+ writer.writeMessage(
935
+ 1,
936
+ f,
937
+ proto.supervisor.TunnelPortRequest.serializeBinaryToWriter
938
+ );
939
+ }
940
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 2));
941
+ if (f != null) {
942
+ writer.writeBytes(
943
+ 2,
944
+ f
945
+ );
946
+ }
947
+ };
948
+
949
+
950
+ /**
951
+ * optional TunnelPortRequest desc = 1;
952
+ * @return {?proto.supervisor.TunnelPortRequest}
953
+ */
954
+ proto.supervisor.EstablishTunnelRequest.prototype.getDesc = function() {
955
+ return /** @type{?proto.supervisor.TunnelPortRequest} */ (
956
+ jspb.Message.getWrapperField(this, proto.supervisor.TunnelPortRequest, 1));
957
+ };
958
+
959
+
960
+ /**
961
+ * @param {?proto.supervisor.TunnelPortRequest|undefined} value
962
+ * @return {!proto.supervisor.EstablishTunnelRequest} returns this
963
+ */
964
+ proto.supervisor.EstablishTunnelRequest.prototype.setDesc = function(value) {
965
+ return jspb.Message.setOneofWrapperField(this, 1, proto.supervisor.EstablishTunnelRequest.oneofGroups_[0], value);
966
+ };
967
+
968
+
969
+ /**
970
+ * Clears the message field making it undefined.
971
+ * @return {!proto.supervisor.EstablishTunnelRequest} returns this
972
+ */
973
+ proto.supervisor.EstablishTunnelRequest.prototype.clearDesc = function() {
974
+ return this.setDesc(undefined);
975
+ };
976
+
977
+
978
+ /**
979
+ * Returns whether this field is set.
980
+ * @return {boolean}
981
+ */
982
+ proto.supervisor.EstablishTunnelRequest.prototype.hasDesc = function() {
983
+ return jspb.Message.getField(this, 1) != null;
984
+ };
985
+
986
+
987
+ /**
988
+ * optional bytes data = 2;
989
+ * @return {!(string|Uint8Array)}
990
+ */
991
+ proto.supervisor.EstablishTunnelRequest.prototype.getData = function() {
992
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
993
+ };
994
+
995
+
996
+ /**
997
+ * optional bytes data = 2;
998
+ * This is a type-conversion wrapper around `getData()`
999
+ * @return {string}
1000
+ */
1001
+ proto.supervisor.EstablishTunnelRequest.prototype.getData_asB64 = function() {
1002
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1003
+ this.getData()));
1004
+ };
1005
+
1006
+
1007
+ /**
1008
+ * optional bytes data = 2;
1009
+ * Note that Uint8Array is not supported on all browsers.
1010
+ * @see http://caniuse.com/Uint8Array
1011
+ * This is a type-conversion wrapper around `getData()`
1012
+ * @return {!Uint8Array}
1013
+ */
1014
+ proto.supervisor.EstablishTunnelRequest.prototype.getData_asU8 = function() {
1015
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1016
+ this.getData()));
1017
+ };
1018
+
1019
+
1020
+ /**
1021
+ * @param {!(string|Uint8Array)} value
1022
+ * @return {!proto.supervisor.EstablishTunnelRequest} returns this
1023
+ */
1024
+ proto.supervisor.EstablishTunnelRequest.prototype.setData = function(value) {
1025
+ return jspb.Message.setOneofField(this, 2, proto.supervisor.EstablishTunnelRequest.oneofGroups_[0], value);
1026
+ };
1027
+
1028
+
1029
+ /**
1030
+ * Clears the field making it undefined.
1031
+ * @return {!proto.supervisor.EstablishTunnelRequest} returns this
1032
+ */
1033
+ proto.supervisor.EstablishTunnelRequest.prototype.clearData = function() {
1034
+ return jspb.Message.setOneofField(this, 2, proto.supervisor.EstablishTunnelRequest.oneofGroups_[0], undefined);
1035
+ };
1036
+
1037
+
1038
+ /**
1039
+ * Returns whether this field is set.
1040
+ * @return {boolean}
1041
+ */
1042
+ proto.supervisor.EstablishTunnelRequest.prototype.hasData = function() {
1043
+ return jspb.Message.getField(this, 2) != null;
1044
+ };
1045
+
1046
+
1047
+
1048
+
1049
+
1050
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1051
+ /**
1052
+ * Creates an object representation of this proto.
1053
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1054
+ * Optional fields that are not set will be set to undefined.
1055
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1056
+ * For the list of reserved names please see:
1057
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1058
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1059
+ * JSPB instance for transitional soy proto support:
1060
+ * http://goto/soy-param-migration
1061
+ * @return {!Object}
1062
+ */
1063
+ proto.supervisor.EstablishTunnelResponse.prototype.toObject = function(opt_includeInstance) {
1064
+ return proto.supervisor.EstablishTunnelResponse.toObject(opt_includeInstance, this);
1065
+ };
1066
+
1067
+
1068
+ /**
1069
+ * Static version of the {@see toObject} method.
1070
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1071
+ * the JSPB instance for transitional soy proto support:
1072
+ * http://goto/soy-param-migration
1073
+ * @param {!proto.supervisor.EstablishTunnelResponse} msg The msg instance to transform.
1074
+ * @return {!Object}
1075
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1076
+ */
1077
+ proto.supervisor.EstablishTunnelResponse.toObject = function(includeInstance, msg) {
1078
+ var f, obj = {
1079
+ data: msg.getData_asB64()
1080
+ };
1081
+
1082
+ if (includeInstance) {
1083
+ obj.$jspbMessageInstance = msg;
1084
+ }
1085
+ return obj;
1086
+ };
1087
+ }
1088
+
1089
+
1090
+ /**
1091
+ * Deserializes binary data (in protobuf wire format).
1092
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1093
+ * @return {!proto.supervisor.EstablishTunnelResponse}
1094
+ */
1095
+ proto.supervisor.EstablishTunnelResponse.deserializeBinary = function(bytes) {
1096
+ var reader = new jspb.BinaryReader(bytes);
1097
+ var msg = new proto.supervisor.EstablishTunnelResponse;
1098
+ return proto.supervisor.EstablishTunnelResponse.deserializeBinaryFromReader(msg, reader);
1099
+ };
1100
+
1101
+
1102
+ /**
1103
+ * Deserializes binary data (in protobuf wire format) from the
1104
+ * given reader into the given message object.
1105
+ * @param {!proto.supervisor.EstablishTunnelResponse} msg The message object to deserialize into.
1106
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1107
+ * @return {!proto.supervisor.EstablishTunnelResponse}
1108
+ */
1109
+ proto.supervisor.EstablishTunnelResponse.deserializeBinaryFromReader = function(msg, reader) {
1110
+ while (reader.nextField()) {
1111
+ if (reader.isEndGroup()) {
1112
+ break;
1113
+ }
1114
+ var field = reader.getFieldNumber();
1115
+ switch (field) {
1116
+ case 1:
1117
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
1118
+ msg.setData(value);
1119
+ break;
1120
+ default:
1121
+ reader.skipField();
1122
+ break;
1123
+ }
1124
+ }
1125
+ return msg;
1126
+ };
1127
+
1128
+
1129
+ /**
1130
+ * Serializes the message to binary data (in protobuf wire format).
1131
+ * @return {!Uint8Array}
1132
+ */
1133
+ proto.supervisor.EstablishTunnelResponse.prototype.serializeBinary = function() {
1134
+ var writer = new jspb.BinaryWriter();
1135
+ proto.supervisor.EstablishTunnelResponse.serializeBinaryToWriter(this, writer);
1136
+ return writer.getResultBuffer();
1137
+ };
1138
+
1139
+
1140
+ /**
1141
+ * Serializes the given message to binary data (in protobuf wire
1142
+ * format), writing to the given BinaryWriter.
1143
+ * @param {!proto.supervisor.EstablishTunnelResponse} message
1144
+ * @param {!jspb.BinaryWriter} writer
1145
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1146
+ */
1147
+ proto.supervisor.EstablishTunnelResponse.serializeBinaryToWriter = function(message, writer) {
1148
+ var f = undefined;
1149
+ f = message.getData_asU8();
1150
+ if (f.length > 0) {
1151
+ writer.writeBytes(
1152
+ 1,
1153
+ f
1154
+ );
1155
+ }
1156
+ };
1157
+
1158
+
1159
+ /**
1160
+ * optional bytes data = 1;
1161
+ * @return {!(string|Uint8Array)}
1162
+ */
1163
+ proto.supervisor.EstablishTunnelResponse.prototype.getData = function() {
1164
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1165
+ };
1166
+
1167
+
1168
+ /**
1169
+ * optional bytes data = 1;
1170
+ * This is a type-conversion wrapper around `getData()`
1171
+ * @return {string}
1172
+ */
1173
+ proto.supervisor.EstablishTunnelResponse.prototype.getData_asB64 = function() {
1174
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1175
+ this.getData()));
1176
+ };
1177
+
1178
+
1179
+ /**
1180
+ * optional bytes data = 1;
1181
+ * Note that Uint8Array is not supported on all browsers.
1182
+ * @see http://caniuse.com/Uint8Array
1183
+ * This is a type-conversion wrapper around `getData()`
1184
+ * @return {!Uint8Array}
1185
+ */
1186
+ proto.supervisor.EstablishTunnelResponse.prototype.getData_asU8 = function() {
1187
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1188
+ this.getData()));
1189
+ };
1190
+
1191
+
1192
+ /**
1193
+ * @param {!(string|Uint8Array)} value
1194
+ * @return {!proto.supervisor.EstablishTunnelResponse} returns this
1195
+ */
1196
+ proto.supervisor.EstablishTunnelResponse.prototype.setData = function(value) {
1197
+ return jspb.Message.setProto3BytesField(this, 1, value);
1198
+ };
1199
+
1200
+
1201
+
1202
+
1203
+
1204
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1205
+ /**
1206
+ * Creates an object representation of this proto.
1207
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1208
+ * Optional fields that are not set will be set to undefined.
1209
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1210
+ * For the list of reserved names please see:
1211
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1212
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1213
+ * JSPB instance for transitional soy proto support:
1214
+ * http://goto/soy-param-migration
1215
+ * @return {!Object}
1216
+ */
1217
+ proto.supervisor.AutoTunnelRequest.prototype.toObject = function(opt_includeInstance) {
1218
+ return proto.supervisor.AutoTunnelRequest.toObject(opt_includeInstance, this);
1219
+ };
1220
+
1221
+
1222
+ /**
1223
+ * Static version of the {@see toObject} method.
1224
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1225
+ * the JSPB instance for transitional soy proto support:
1226
+ * http://goto/soy-param-migration
1227
+ * @param {!proto.supervisor.AutoTunnelRequest} msg The msg instance to transform.
1228
+ * @return {!Object}
1229
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1230
+ */
1231
+ proto.supervisor.AutoTunnelRequest.toObject = function(includeInstance, msg) {
1232
+ var f, obj = {
1233
+ enabled: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
1234
+ };
1235
+
1236
+ if (includeInstance) {
1237
+ obj.$jspbMessageInstance = msg;
1238
+ }
1239
+ return obj;
1240
+ };
1241
+ }
1242
+
1243
+
1244
+ /**
1245
+ * Deserializes binary data (in protobuf wire format).
1246
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1247
+ * @return {!proto.supervisor.AutoTunnelRequest}
1248
+ */
1249
+ proto.supervisor.AutoTunnelRequest.deserializeBinary = function(bytes) {
1250
+ var reader = new jspb.BinaryReader(bytes);
1251
+ var msg = new proto.supervisor.AutoTunnelRequest;
1252
+ return proto.supervisor.AutoTunnelRequest.deserializeBinaryFromReader(msg, reader);
1253
+ };
1254
+
1255
+
1256
+ /**
1257
+ * Deserializes binary data (in protobuf wire format) from the
1258
+ * given reader into the given message object.
1259
+ * @param {!proto.supervisor.AutoTunnelRequest} msg The message object to deserialize into.
1260
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1261
+ * @return {!proto.supervisor.AutoTunnelRequest}
1262
+ */
1263
+ proto.supervisor.AutoTunnelRequest.deserializeBinaryFromReader = function(msg, reader) {
1264
+ while (reader.nextField()) {
1265
+ if (reader.isEndGroup()) {
1266
+ break;
1267
+ }
1268
+ var field = reader.getFieldNumber();
1269
+ switch (field) {
1270
+ case 1:
1271
+ var value = /** @type {boolean} */ (reader.readBool());
1272
+ msg.setEnabled(value);
1273
+ break;
1274
+ default:
1275
+ reader.skipField();
1276
+ break;
1277
+ }
1278
+ }
1279
+ return msg;
1280
+ };
1281
+
1282
+
1283
+ /**
1284
+ * Serializes the message to binary data (in protobuf wire format).
1285
+ * @return {!Uint8Array}
1286
+ */
1287
+ proto.supervisor.AutoTunnelRequest.prototype.serializeBinary = function() {
1288
+ var writer = new jspb.BinaryWriter();
1289
+ proto.supervisor.AutoTunnelRequest.serializeBinaryToWriter(this, writer);
1290
+ return writer.getResultBuffer();
1291
+ };
1292
+
1293
+
1294
+ /**
1295
+ * Serializes the given message to binary data (in protobuf wire
1296
+ * format), writing to the given BinaryWriter.
1297
+ * @param {!proto.supervisor.AutoTunnelRequest} message
1298
+ * @param {!jspb.BinaryWriter} writer
1299
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1300
+ */
1301
+ proto.supervisor.AutoTunnelRequest.serializeBinaryToWriter = function(message, writer) {
1302
+ var f = undefined;
1303
+ f = message.getEnabled();
1304
+ if (f) {
1305
+ writer.writeBool(
1306
+ 1,
1307
+ f
1308
+ );
1309
+ }
1310
+ };
1311
+
1312
+
1313
+ /**
1314
+ * optional bool enabled = 1;
1315
+ * @return {boolean}
1316
+ */
1317
+ proto.supervisor.AutoTunnelRequest.prototype.getEnabled = function() {
1318
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
1319
+ };
1320
+
1321
+
1322
+ /**
1323
+ * @param {boolean} value
1324
+ * @return {!proto.supervisor.AutoTunnelRequest} returns this
1325
+ */
1326
+ proto.supervisor.AutoTunnelRequest.prototype.setEnabled = function(value) {
1327
+ return jspb.Message.setProto3BooleanField(this, 1, value);
1328
+ };
1329
+
1330
+
1331
+
1332
+
1333
+
1334
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1335
+ /**
1336
+ * Creates an object representation of this proto.
1337
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1338
+ * Optional fields that are not set will be set to undefined.
1339
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1340
+ * For the list of reserved names please see:
1341
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1342
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1343
+ * JSPB instance for transitional soy proto support:
1344
+ * http://goto/soy-param-migration
1345
+ * @return {!Object}
1346
+ */
1347
+ proto.supervisor.AutoTunnelResponse.prototype.toObject = function(opt_includeInstance) {
1348
+ return proto.supervisor.AutoTunnelResponse.toObject(opt_includeInstance, this);
1349
+ };
1350
+
1351
+
1352
+ /**
1353
+ * Static version of the {@see toObject} method.
1354
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1355
+ * the JSPB instance for transitional soy proto support:
1356
+ * http://goto/soy-param-migration
1357
+ * @param {!proto.supervisor.AutoTunnelResponse} msg The msg instance to transform.
1358
+ * @return {!Object}
1359
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1360
+ */
1361
+ proto.supervisor.AutoTunnelResponse.toObject = function(includeInstance, msg) {
1362
+ var f, obj = {
1363
+
1364
+ };
1365
+
1366
+ if (includeInstance) {
1367
+ obj.$jspbMessageInstance = msg;
1368
+ }
1369
+ return obj;
1370
+ };
1371
+ }
1372
+
1373
+
1374
+ /**
1375
+ * Deserializes binary data (in protobuf wire format).
1376
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1377
+ * @return {!proto.supervisor.AutoTunnelResponse}
1378
+ */
1379
+ proto.supervisor.AutoTunnelResponse.deserializeBinary = function(bytes) {
1380
+ var reader = new jspb.BinaryReader(bytes);
1381
+ var msg = new proto.supervisor.AutoTunnelResponse;
1382
+ return proto.supervisor.AutoTunnelResponse.deserializeBinaryFromReader(msg, reader);
1383
+ };
1384
+
1385
+
1386
+ /**
1387
+ * Deserializes binary data (in protobuf wire format) from the
1388
+ * given reader into the given message object.
1389
+ * @param {!proto.supervisor.AutoTunnelResponse} msg The message object to deserialize into.
1390
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1391
+ * @return {!proto.supervisor.AutoTunnelResponse}
1392
+ */
1393
+ proto.supervisor.AutoTunnelResponse.deserializeBinaryFromReader = function(msg, reader) {
1394
+ while (reader.nextField()) {
1395
+ if (reader.isEndGroup()) {
1396
+ break;
1397
+ }
1398
+ var field = reader.getFieldNumber();
1399
+ switch (field) {
1400
+ default:
1401
+ reader.skipField();
1402
+ break;
1403
+ }
1404
+ }
1405
+ return msg;
1406
+ };
1407
+
1408
+
1409
+ /**
1410
+ * Serializes the message to binary data (in protobuf wire format).
1411
+ * @return {!Uint8Array}
1412
+ */
1413
+ proto.supervisor.AutoTunnelResponse.prototype.serializeBinary = function() {
1414
+ var writer = new jspb.BinaryWriter();
1415
+ proto.supervisor.AutoTunnelResponse.serializeBinaryToWriter(this, writer);
1416
+ return writer.getResultBuffer();
1417
+ };
1418
+
1419
+
1420
+ /**
1421
+ * Serializes the given message to binary data (in protobuf wire
1422
+ * format), writing to the given BinaryWriter.
1423
+ * @param {!proto.supervisor.AutoTunnelResponse} message
1424
+ * @param {!jspb.BinaryWriter} writer
1425
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1426
+ */
1427
+ proto.supervisor.AutoTunnelResponse.serializeBinaryToWriter = function(message, writer) {
1428
+ var f = undefined;
1429
+ };
1430
+
1431
+
1432
+
1433
+
1434
+
1435
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1436
+ /**
1437
+ * Creates an object representation of this proto.
1438
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1439
+ * Optional fields that are not set will be set to undefined.
1440
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1441
+ * For the list of reserved names please see:
1442
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1443
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1444
+ * JSPB instance for transitional soy proto support:
1445
+ * http://goto/soy-param-migration
1446
+ * @return {!Object}
1447
+ */
1448
+ proto.supervisor.RetryAutoExposeRequest.prototype.toObject = function(opt_includeInstance) {
1449
+ return proto.supervisor.RetryAutoExposeRequest.toObject(opt_includeInstance, this);
1450
+ };
1451
+
1452
+
1453
+ /**
1454
+ * Static version of the {@see toObject} method.
1455
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1456
+ * the JSPB instance for transitional soy proto support:
1457
+ * http://goto/soy-param-migration
1458
+ * @param {!proto.supervisor.RetryAutoExposeRequest} msg The msg instance to transform.
1459
+ * @return {!Object}
1460
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1461
+ */
1462
+ proto.supervisor.RetryAutoExposeRequest.toObject = function(includeInstance, msg) {
1463
+ var f, obj = {
1464
+ port: jspb.Message.getFieldWithDefault(msg, 1, 0)
1465
+ };
1466
+
1467
+ if (includeInstance) {
1468
+ obj.$jspbMessageInstance = msg;
1469
+ }
1470
+ return obj;
1471
+ };
1472
+ }
1473
+
1474
+
1475
+ /**
1476
+ * Deserializes binary data (in protobuf wire format).
1477
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1478
+ * @return {!proto.supervisor.RetryAutoExposeRequest}
1479
+ */
1480
+ proto.supervisor.RetryAutoExposeRequest.deserializeBinary = function(bytes) {
1481
+ var reader = new jspb.BinaryReader(bytes);
1482
+ var msg = new proto.supervisor.RetryAutoExposeRequest;
1483
+ return proto.supervisor.RetryAutoExposeRequest.deserializeBinaryFromReader(msg, reader);
1484
+ };
1485
+
1486
+
1487
+ /**
1488
+ * Deserializes binary data (in protobuf wire format) from the
1489
+ * given reader into the given message object.
1490
+ * @param {!proto.supervisor.RetryAutoExposeRequest} msg The message object to deserialize into.
1491
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1492
+ * @return {!proto.supervisor.RetryAutoExposeRequest}
1493
+ */
1494
+ proto.supervisor.RetryAutoExposeRequest.deserializeBinaryFromReader = function(msg, reader) {
1495
+ while (reader.nextField()) {
1496
+ if (reader.isEndGroup()) {
1497
+ break;
1498
+ }
1499
+ var field = reader.getFieldNumber();
1500
+ switch (field) {
1501
+ case 1:
1502
+ var value = /** @type {number} */ (reader.readUint32());
1503
+ msg.setPort(value);
1504
+ break;
1505
+ default:
1506
+ reader.skipField();
1507
+ break;
1508
+ }
1509
+ }
1510
+ return msg;
1511
+ };
1512
+
1513
+
1514
+ /**
1515
+ * Serializes the message to binary data (in protobuf wire format).
1516
+ * @return {!Uint8Array}
1517
+ */
1518
+ proto.supervisor.RetryAutoExposeRequest.prototype.serializeBinary = function() {
1519
+ var writer = new jspb.BinaryWriter();
1520
+ proto.supervisor.RetryAutoExposeRequest.serializeBinaryToWriter(this, writer);
1521
+ return writer.getResultBuffer();
1522
+ };
1523
+
1524
+
1525
+ /**
1526
+ * Serializes the given message to binary data (in protobuf wire
1527
+ * format), writing to the given BinaryWriter.
1528
+ * @param {!proto.supervisor.RetryAutoExposeRequest} message
1529
+ * @param {!jspb.BinaryWriter} writer
1530
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1531
+ */
1532
+ proto.supervisor.RetryAutoExposeRequest.serializeBinaryToWriter = function(message, writer) {
1533
+ var f = undefined;
1534
+ f = message.getPort();
1535
+ if (f !== 0) {
1536
+ writer.writeUint32(
1537
+ 1,
1538
+ f
1539
+ );
1540
+ }
1541
+ };
1542
+
1543
+
1544
+ /**
1545
+ * optional uint32 port = 1;
1546
+ * @return {number}
1547
+ */
1548
+ proto.supervisor.RetryAutoExposeRequest.prototype.getPort = function() {
1549
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1550
+ };
1551
+
1552
+
1553
+ /**
1554
+ * @param {number} value
1555
+ * @return {!proto.supervisor.RetryAutoExposeRequest} returns this
1556
+ */
1557
+ proto.supervisor.RetryAutoExposeRequest.prototype.setPort = function(value) {
1558
+ return jspb.Message.setProto3IntField(this, 1, value);
1559
+ };
1560
+
1561
+
1562
+
1563
+
1564
+
1565
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1566
+ /**
1567
+ * Creates an object representation of this proto.
1568
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1569
+ * Optional fields that are not set will be set to undefined.
1570
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1571
+ * For the list of reserved names please see:
1572
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1573
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1574
+ * JSPB instance for transitional soy proto support:
1575
+ * http://goto/soy-param-migration
1576
+ * @return {!Object}
1577
+ */
1578
+ proto.supervisor.RetryAutoExposeResponse.prototype.toObject = function(opt_includeInstance) {
1579
+ return proto.supervisor.RetryAutoExposeResponse.toObject(opt_includeInstance, this);
1580
+ };
1581
+
1582
+
1583
+ /**
1584
+ * Static version of the {@see toObject} method.
1585
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1586
+ * the JSPB instance for transitional soy proto support:
1587
+ * http://goto/soy-param-migration
1588
+ * @param {!proto.supervisor.RetryAutoExposeResponse} msg The msg instance to transform.
1589
+ * @return {!Object}
1590
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1591
+ */
1592
+ proto.supervisor.RetryAutoExposeResponse.toObject = function(includeInstance, msg) {
1593
+ var f, obj = {
1594
+
1595
+ };
1596
+
1597
+ if (includeInstance) {
1598
+ obj.$jspbMessageInstance = msg;
1599
+ }
1600
+ return obj;
1601
+ };
1602
+ }
1603
+
1604
+
1605
+ /**
1606
+ * Deserializes binary data (in protobuf wire format).
1607
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1608
+ * @return {!proto.supervisor.RetryAutoExposeResponse}
1609
+ */
1610
+ proto.supervisor.RetryAutoExposeResponse.deserializeBinary = function(bytes) {
1611
+ var reader = new jspb.BinaryReader(bytes);
1612
+ var msg = new proto.supervisor.RetryAutoExposeResponse;
1613
+ return proto.supervisor.RetryAutoExposeResponse.deserializeBinaryFromReader(msg, reader);
1614
+ };
1615
+
1616
+
1617
+ /**
1618
+ * Deserializes binary data (in protobuf wire format) from the
1619
+ * given reader into the given message object.
1620
+ * @param {!proto.supervisor.RetryAutoExposeResponse} msg The message object to deserialize into.
1621
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1622
+ * @return {!proto.supervisor.RetryAutoExposeResponse}
1623
+ */
1624
+ proto.supervisor.RetryAutoExposeResponse.deserializeBinaryFromReader = function(msg, reader) {
1625
+ while (reader.nextField()) {
1626
+ if (reader.isEndGroup()) {
1627
+ break;
1628
+ }
1629
+ var field = reader.getFieldNumber();
1630
+ switch (field) {
1631
+ default:
1632
+ reader.skipField();
1633
+ break;
1634
+ }
1635
+ }
1636
+ return msg;
1637
+ };
1638
+
1639
+
1640
+ /**
1641
+ * Serializes the message to binary data (in protobuf wire format).
1642
+ * @return {!Uint8Array}
1643
+ */
1644
+ proto.supervisor.RetryAutoExposeResponse.prototype.serializeBinary = function() {
1645
+ var writer = new jspb.BinaryWriter();
1646
+ proto.supervisor.RetryAutoExposeResponse.serializeBinaryToWriter(this, writer);
1647
+ return writer.getResultBuffer();
1648
+ };
1649
+
1650
+
1651
+ /**
1652
+ * Serializes the given message to binary data (in protobuf wire
1653
+ * format), writing to the given BinaryWriter.
1654
+ * @param {!proto.supervisor.RetryAutoExposeResponse} message
1655
+ * @param {!jspb.BinaryWriter} writer
1656
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1657
+ */
1658
+ proto.supervisor.RetryAutoExposeResponse.serializeBinaryToWriter = function(message, writer) {
1659
+ var f = undefined;
1660
+ };
1661
+
1662
+
1663
+ /**
1664
+ * @enum {number}
1665
+ */
1666
+ proto.supervisor.TunnelVisiblity = {
1667
+ NONE: 0,
1668
+ HOST: 1,
1669
+ NETWORK: 2
1670
+ };
1671
+
1672
+ goog.object.extend(exports, proto.supervisor);