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

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