@gitpod/supervisor-api-grpc 0.1.5-minor-updates.3 → 0.1.5-mp-wsi-status-version.0

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/status_pb.js CHANGED
@@ -13,8 +13,16 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
17
-
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
+ var port_pb = require('./port_pb.js');
25
+ goog.object.extend(proto, port_pb);
18
26
  goog.exportSymbol('proto.supervisor.BackupStatusRequest', null, global);
19
27
  goog.exportSymbol('proto.supervisor.BackupStatusResponse', null, global);
20
28
  goog.exportSymbol('proto.supervisor.ContentSource', null, global);
@@ -23,7 +31,9 @@ goog.exportSymbol('proto.supervisor.ContentStatusResponse', null, global);
23
31
  goog.exportSymbol('proto.supervisor.ExposedPortInfo', null, global);
24
32
  goog.exportSymbol('proto.supervisor.IDEStatusRequest', null, global);
25
33
  goog.exportSymbol('proto.supervisor.IDEStatusResponse', null, global);
34
+ goog.exportSymbol('proto.supervisor.IDEStatusResponse.DesktopStatus', null, global);
26
35
  goog.exportSymbol('proto.supervisor.OnPortExposedAction', null, global);
36
+ goog.exportSymbol('proto.supervisor.PortAutoExposure', null, global);
27
37
  goog.exportSymbol('proto.supervisor.PortVisibility', null, global);
28
38
  goog.exportSymbol('proto.supervisor.PortsStatus', null, global);
29
39
  goog.exportSymbol('proto.supervisor.PortsStatusRequest', null, global);
@@ -35,6 +45,7 @@ goog.exportSymbol('proto.supervisor.TaskState', null, global);
35
45
  goog.exportSymbol('proto.supervisor.TaskStatus', null, global);
36
46
  goog.exportSymbol('proto.supervisor.TasksStatusRequest', null, global);
37
47
  goog.exportSymbol('proto.supervisor.TasksStatusResponse', null, global);
48
+ goog.exportSymbol('proto.supervisor.TunneledPortInfo', null, global);
38
49
  /**
39
50
  * Generated by JsPbCodeGenerator.
40
51
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -119,6 +130,27 @@ if (goog.DEBUG && !COMPILED) {
119
130
  */
120
131
  proto.supervisor.IDEStatusResponse.displayName = 'proto.supervisor.IDEStatusResponse';
121
132
  }
133
+ /**
134
+ * Generated by JsPbCodeGenerator.
135
+ * @param {Array=} opt_data Optional initial data array, typically from a
136
+ * server response, or constructed directly in Javascript. The array is used
137
+ * in place and becomes part of the constructed object. It is not cloned.
138
+ * If no data is provided, the constructed object will be empty, but still
139
+ * valid.
140
+ * @extends {jspb.Message}
141
+ * @constructor
142
+ */
143
+ proto.supervisor.IDEStatusResponse.DesktopStatus = function(opt_data) {
144
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
145
+ };
146
+ goog.inherits(proto.supervisor.IDEStatusResponse.DesktopStatus, jspb.Message);
147
+ if (goog.DEBUG && !COMPILED) {
148
+ /**
149
+ * @public
150
+ * @override
151
+ */
152
+ proto.supervisor.IDEStatusResponse.DesktopStatus.displayName = 'proto.supervisor.IDEStatusResponse.DesktopStatus';
153
+ }
122
154
  /**
123
155
  * Generated by JsPbCodeGenerator.
124
156
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -266,6 +298,27 @@ if (goog.DEBUG && !COMPILED) {
266
298
  */
267
299
  proto.supervisor.ExposedPortInfo.displayName = 'proto.supervisor.ExposedPortInfo';
268
300
  }
301
+ /**
302
+ * Generated by JsPbCodeGenerator.
303
+ * @param {Array=} opt_data Optional initial data array, typically from a
304
+ * server response, or constructed directly in Javascript. The array is used
305
+ * in place and becomes part of the constructed object. It is not cloned.
306
+ * If no data is provided, the constructed object will be empty, but still
307
+ * valid.
308
+ * @extends {jspb.Message}
309
+ * @constructor
310
+ */
311
+ proto.supervisor.TunneledPortInfo = function(opt_data) {
312
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
313
+ };
314
+ goog.inherits(proto.supervisor.TunneledPortInfo, jspb.Message);
315
+ if (goog.DEBUG && !COMPILED) {
316
+ /**
317
+ * @public
318
+ * @override
319
+ */
320
+ proto.supervisor.TunneledPortInfo.displayName = 'proto.supervisor.TunneledPortInfo';
321
+ }
269
322
  /**
270
323
  * Generated by JsPbCodeGenerator.
271
324
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -764,7 +817,8 @@ proto.supervisor.IDEStatusResponse.prototype.toObject = function(opt_includeInst
764
817
  */
765
818
  proto.supervisor.IDEStatusResponse.toObject = function(includeInstance, msg) {
766
819
  var f, obj = {
767
- ok: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
820
+ ok: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
821
+ desktop: (f = msg.getDesktop()) && proto.supervisor.IDEStatusResponse.DesktopStatus.toObject(includeInstance, f)
768
822
  };
769
823
 
770
824
  if (includeInstance) {
@@ -805,6 +859,11 @@ proto.supervisor.IDEStatusResponse.deserializeBinaryFromReader = function(msg, r
805
859
  var value = /** @type {boolean} */ (reader.readBool());
806
860
  msg.setOk(value);
807
861
  break;
862
+ case 2:
863
+ var value = new proto.supervisor.IDEStatusResponse.DesktopStatus;
864
+ reader.readMessage(value,proto.supervisor.IDEStatusResponse.DesktopStatus.deserializeBinaryFromReader);
865
+ msg.setDesktop(value);
866
+ break;
808
867
  default:
809
868
  reader.skipField();
810
869
  break;
@@ -841,6 +900,234 @@ proto.supervisor.IDEStatusResponse.serializeBinaryToWriter = function(message, w
841
900
  f
842
901
  );
843
902
  }
903
+ f = message.getDesktop();
904
+ if (f != null) {
905
+ writer.writeMessage(
906
+ 2,
907
+ f,
908
+ proto.supervisor.IDEStatusResponse.DesktopStatus.serializeBinaryToWriter
909
+ );
910
+ }
911
+ };
912
+
913
+
914
+
915
+
916
+
917
+ if (jspb.Message.GENERATE_TO_OBJECT) {
918
+ /**
919
+ * Creates an object representation of this proto.
920
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
921
+ * Optional fields that are not set will be set to undefined.
922
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
923
+ * For the list of reserved names please see:
924
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
925
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
926
+ * JSPB instance for transitional soy proto support:
927
+ * http://goto/soy-param-migration
928
+ * @return {!Object}
929
+ */
930
+ proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.toObject = function(opt_includeInstance) {
931
+ return proto.supervisor.IDEStatusResponse.DesktopStatus.toObject(opt_includeInstance, this);
932
+ };
933
+
934
+
935
+ /**
936
+ * Static version of the {@see toObject} method.
937
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
938
+ * the JSPB instance for transitional soy proto support:
939
+ * http://goto/soy-param-migration
940
+ * @param {!proto.supervisor.IDEStatusResponse.DesktopStatus} msg The msg instance to transform.
941
+ * @return {!Object}
942
+ * @suppress {unusedLocalVariables} f is only used for nested messages
943
+ */
944
+ proto.supervisor.IDEStatusResponse.DesktopStatus.toObject = function(includeInstance, msg) {
945
+ var f, obj = {
946
+ link: jspb.Message.getFieldWithDefault(msg, 1, ""),
947
+ label: jspb.Message.getFieldWithDefault(msg, 2, ""),
948
+ clientid: jspb.Message.getFieldWithDefault(msg, 3, ""),
949
+ kind: jspb.Message.getFieldWithDefault(msg, 4, "")
950
+ };
951
+
952
+ if (includeInstance) {
953
+ obj.$jspbMessageInstance = msg;
954
+ }
955
+ return obj;
956
+ };
957
+ }
958
+
959
+
960
+ /**
961
+ * Deserializes binary data (in protobuf wire format).
962
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
963
+ * @return {!proto.supervisor.IDEStatusResponse.DesktopStatus}
964
+ */
965
+ proto.supervisor.IDEStatusResponse.DesktopStatus.deserializeBinary = function(bytes) {
966
+ var reader = new jspb.BinaryReader(bytes);
967
+ var msg = new proto.supervisor.IDEStatusResponse.DesktopStatus;
968
+ return proto.supervisor.IDEStatusResponse.DesktopStatus.deserializeBinaryFromReader(msg, reader);
969
+ };
970
+
971
+
972
+ /**
973
+ * Deserializes binary data (in protobuf wire format) from the
974
+ * given reader into the given message object.
975
+ * @param {!proto.supervisor.IDEStatusResponse.DesktopStatus} msg The message object to deserialize into.
976
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
977
+ * @return {!proto.supervisor.IDEStatusResponse.DesktopStatus}
978
+ */
979
+ proto.supervisor.IDEStatusResponse.DesktopStatus.deserializeBinaryFromReader = function(msg, reader) {
980
+ while (reader.nextField()) {
981
+ if (reader.isEndGroup()) {
982
+ break;
983
+ }
984
+ var field = reader.getFieldNumber();
985
+ switch (field) {
986
+ case 1:
987
+ var value = /** @type {string} */ (reader.readString());
988
+ msg.setLink(value);
989
+ break;
990
+ case 2:
991
+ var value = /** @type {string} */ (reader.readString());
992
+ msg.setLabel(value);
993
+ break;
994
+ case 3:
995
+ var value = /** @type {string} */ (reader.readString());
996
+ msg.setClientid(value);
997
+ break;
998
+ case 4:
999
+ var value = /** @type {string} */ (reader.readString());
1000
+ msg.setKind(value);
1001
+ break;
1002
+ default:
1003
+ reader.skipField();
1004
+ break;
1005
+ }
1006
+ }
1007
+ return msg;
1008
+ };
1009
+
1010
+
1011
+ /**
1012
+ * Serializes the message to binary data (in protobuf wire format).
1013
+ * @return {!Uint8Array}
1014
+ */
1015
+ proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.serializeBinary = function() {
1016
+ var writer = new jspb.BinaryWriter();
1017
+ proto.supervisor.IDEStatusResponse.DesktopStatus.serializeBinaryToWriter(this, writer);
1018
+ return writer.getResultBuffer();
1019
+ };
1020
+
1021
+
1022
+ /**
1023
+ * Serializes the given message to binary data (in protobuf wire
1024
+ * format), writing to the given BinaryWriter.
1025
+ * @param {!proto.supervisor.IDEStatusResponse.DesktopStatus} message
1026
+ * @param {!jspb.BinaryWriter} writer
1027
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1028
+ */
1029
+ proto.supervisor.IDEStatusResponse.DesktopStatus.serializeBinaryToWriter = function(message, writer) {
1030
+ var f = undefined;
1031
+ f = message.getLink();
1032
+ if (f.length > 0) {
1033
+ writer.writeString(
1034
+ 1,
1035
+ f
1036
+ );
1037
+ }
1038
+ f = message.getLabel();
1039
+ if (f.length > 0) {
1040
+ writer.writeString(
1041
+ 2,
1042
+ f
1043
+ );
1044
+ }
1045
+ f = message.getClientid();
1046
+ if (f.length > 0) {
1047
+ writer.writeString(
1048
+ 3,
1049
+ f
1050
+ );
1051
+ }
1052
+ f = message.getKind();
1053
+ if (f.length > 0) {
1054
+ writer.writeString(
1055
+ 4,
1056
+ f
1057
+ );
1058
+ }
1059
+ };
1060
+
1061
+
1062
+ /**
1063
+ * optional string link = 1;
1064
+ * @return {string}
1065
+ */
1066
+ proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.getLink = function() {
1067
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1068
+ };
1069
+
1070
+
1071
+ /**
1072
+ * @param {string} value
1073
+ * @return {!proto.supervisor.IDEStatusResponse.DesktopStatus} returns this
1074
+ */
1075
+ proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.setLink = function(value) {
1076
+ return jspb.Message.setProto3StringField(this, 1, value);
1077
+ };
1078
+
1079
+
1080
+ /**
1081
+ * optional string label = 2;
1082
+ * @return {string}
1083
+ */
1084
+ proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.getLabel = function() {
1085
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1086
+ };
1087
+
1088
+
1089
+ /**
1090
+ * @param {string} value
1091
+ * @return {!proto.supervisor.IDEStatusResponse.DesktopStatus} returns this
1092
+ */
1093
+ proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.setLabel = function(value) {
1094
+ return jspb.Message.setProto3StringField(this, 2, value);
1095
+ };
1096
+
1097
+
1098
+ /**
1099
+ * optional string clientID = 3;
1100
+ * @return {string}
1101
+ */
1102
+ proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.getClientid = function() {
1103
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1104
+ };
1105
+
1106
+
1107
+ /**
1108
+ * @param {string} value
1109
+ * @return {!proto.supervisor.IDEStatusResponse.DesktopStatus} returns this
1110
+ */
1111
+ proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.setClientid = function(value) {
1112
+ return jspb.Message.setProto3StringField(this, 3, value);
1113
+ };
1114
+
1115
+
1116
+ /**
1117
+ * optional string kind = 4;
1118
+ * @return {string}
1119
+ */
1120
+ proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.getKind = function() {
1121
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1122
+ };
1123
+
1124
+
1125
+ /**
1126
+ * @param {string} value
1127
+ * @return {!proto.supervisor.IDEStatusResponse.DesktopStatus} returns this
1128
+ */
1129
+ proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.setKind = function(value) {
1130
+ return jspb.Message.setProto3StringField(this, 4, value);
844
1131
  };
845
1132
 
846
1133
 
@@ -862,6 +1149,43 @@ proto.supervisor.IDEStatusResponse.prototype.setOk = function(value) {
862
1149
  };
863
1150
 
864
1151
 
1152
+ /**
1153
+ * optional DesktopStatus desktop = 2;
1154
+ * @return {?proto.supervisor.IDEStatusResponse.DesktopStatus}
1155
+ */
1156
+ proto.supervisor.IDEStatusResponse.prototype.getDesktop = function() {
1157
+ return /** @type{?proto.supervisor.IDEStatusResponse.DesktopStatus} */ (
1158
+ jspb.Message.getWrapperField(this, proto.supervisor.IDEStatusResponse.DesktopStatus, 2));
1159
+ };
1160
+
1161
+
1162
+ /**
1163
+ * @param {?proto.supervisor.IDEStatusResponse.DesktopStatus|undefined} value
1164
+ * @return {!proto.supervisor.IDEStatusResponse} returns this
1165
+ */
1166
+ proto.supervisor.IDEStatusResponse.prototype.setDesktop = function(value) {
1167
+ return jspb.Message.setWrapperField(this, 2, value);
1168
+ };
1169
+
1170
+
1171
+ /**
1172
+ * Clears the message field making it undefined.
1173
+ * @return {!proto.supervisor.IDEStatusResponse} returns this
1174
+ */
1175
+ proto.supervisor.IDEStatusResponse.prototype.clearDesktop = function() {
1176
+ return this.setDesktop(undefined);
1177
+ };
1178
+
1179
+
1180
+ /**
1181
+ * Returns whether this field is set.
1182
+ * @return {boolean}
1183
+ */
1184
+ proto.supervisor.IDEStatusResponse.prototype.hasDesktop = function() {
1185
+ return jspb.Message.getField(this, 2) != null;
1186
+ };
1187
+
1188
+
865
1189
 
866
1190
 
867
1191
 
@@ -1866,6 +2190,199 @@ proto.supervisor.ExposedPortInfo.prototype.setOnExposed = function(value) {
1866
2190
 
1867
2191
 
1868
2192
 
2193
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2194
+ /**
2195
+ * Creates an object representation of this proto.
2196
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2197
+ * Optional fields that are not set will be set to undefined.
2198
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2199
+ * For the list of reserved names please see:
2200
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2201
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2202
+ * JSPB instance for transitional soy proto support:
2203
+ * http://goto/soy-param-migration
2204
+ * @return {!Object}
2205
+ */
2206
+ proto.supervisor.TunneledPortInfo.prototype.toObject = function(opt_includeInstance) {
2207
+ return proto.supervisor.TunneledPortInfo.toObject(opt_includeInstance, this);
2208
+ };
2209
+
2210
+
2211
+ /**
2212
+ * Static version of the {@see toObject} method.
2213
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2214
+ * the JSPB instance for transitional soy proto support:
2215
+ * http://goto/soy-param-migration
2216
+ * @param {!proto.supervisor.TunneledPortInfo} msg The msg instance to transform.
2217
+ * @return {!Object}
2218
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2219
+ */
2220
+ proto.supervisor.TunneledPortInfo.toObject = function(includeInstance, msg) {
2221
+ var f, obj = {
2222
+ targetPort: jspb.Message.getFieldWithDefault(msg, 1, 0),
2223
+ visibility: jspb.Message.getFieldWithDefault(msg, 2, 0),
2224
+ clientsMap: (f = msg.getClientsMap()) ? f.toObject(includeInstance, undefined) : []
2225
+ };
2226
+
2227
+ if (includeInstance) {
2228
+ obj.$jspbMessageInstance = msg;
2229
+ }
2230
+ return obj;
2231
+ };
2232
+ }
2233
+
2234
+
2235
+ /**
2236
+ * Deserializes binary data (in protobuf wire format).
2237
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2238
+ * @return {!proto.supervisor.TunneledPortInfo}
2239
+ */
2240
+ proto.supervisor.TunneledPortInfo.deserializeBinary = function(bytes) {
2241
+ var reader = new jspb.BinaryReader(bytes);
2242
+ var msg = new proto.supervisor.TunneledPortInfo;
2243
+ return proto.supervisor.TunneledPortInfo.deserializeBinaryFromReader(msg, reader);
2244
+ };
2245
+
2246
+
2247
+ /**
2248
+ * Deserializes binary data (in protobuf wire format) from the
2249
+ * given reader into the given message object.
2250
+ * @param {!proto.supervisor.TunneledPortInfo} msg The message object to deserialize into.
2251
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2252
+ * @return {!proto.supervisor.TunneledPortInfo}
2253
+ */
2254
+ proto.supervisor.TunneledPortInfo.deserializeBinaryFromReader = function(msg, reader) {
2255
+ while (reader.nextField()) {
2256
+ if (reader.isEndGroup()) {
2257
+ break;
2258
+ }
2259
+ var field = reader.getFieldNumber();
2260
+ switch (field) {
2261
+ case 1:
2262
+ var value = /** @type {number} */ (reader.readUint32());
2263
+ msg.setTargetPort(value);
2264
+ break;
2265
+ case 2:
2266
+ var value = /** @type {!proto.supervisor.TunnelVisiblity} */ (reader.readEnum());
2267
+ msg.setVisibility(value);
2268
+ break;
2269
+ case 3:
2270
+ var value = msg.getClientsMap();
2271
+ reader.readMessage(value, function(message, reader) {
2272
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readUint32, null, "", 0);
2273
+ });
2274
+ break;
2275
+ default:
2276
+ reader.skipField();
2277
+ break;
2278
+ }
2279
+ }
2280
+ return msg;
2281
+ };
2282
+
2283
+
2284
+ /**
2285
+ * Serializes the message to binary data (in protobuf wire format).
2286
+ * @return {!Uint8Array}
2287
+ */
2288
+ proto.supervisor.TunneledPortInfo.prototype.serializeBinary = function() {
2289
+ var writer = new jspb.BinaryWriter();
2290
+ proto.supervisor.TunneledPortInfo.serializeBinaryToWriter(this, writer);
2291
+ return writer.getResultBuffer();
2292
+ };
2293
+
2294
+
2295
+ /**
2296
+ * Serializes the given message to binary data (in protobuf wire
2297
+ * format), writing to the given BinaryWriter.
2298
+ * @param {!proto.supervisor.TunneledPortInfo} message
2299
+ * @param {!jspb.BinaryWriter} writer
2300
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2301
+ */
2302
+ proto.supervisor.TunneledPortInfo.serializeBinaryToWriter = function(message, writer) {
2303
+ var f = undefined;
2304
+ f = message.getTargetPort();
2305
+ if (f !== 0) {
2306
+ writer.writeUint32(
2307
+ 1,
2308
+ f
2309
+ );
2310
+ }
2311
+ f = message.getVisibility();
2312
+ if (f !== 0.0) {
2313
+ writer.writeEnum(
2314
+ 2,
2315
+ f
2316
+ );
2317
+ }
2318
+ f = message.getClientsMap(true);
2319
+ if (f && f.getLength() > 0) {
2320
+ f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeUint32);
2321
+ }
2322
+ };
2323
+
2324
+
2325
+ /**
2326
+ * optional uint32 target_port = 1;
2327
+ * @return {number}
2328
+ */
2329
+ proto.supervisor.TunneledPortInfo.prototype.getTargetPort = function() {
2330
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2331
+ };
2332
+
2333
+
2334
+ /**
2335
+ * @param {number} value
2336
+ * @return {!proto.supervisor.TunneledPortInfo} returns this
2337
+ */
2338
+ proto.supervisor.TunneledPortInfo.prototype.setTargetPort = function(value) {
2339
+ return jspb.Message.setProto3IntField(this, 1, value);
2340
+ };
2341
+
2342
+
2343
+ /**
2344
+ * optional TunnelVisiblity visibility = 2;
2345
+ * @return {!proto.supervisor.TunnelVisiblity}
2346
+ */
2347
+ proto.supervisor.TunneledPortInfo.prototype.getVisibility = function() {
2348
+ return /** @type {!proto.supervisor.TunnelVisiblity} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2349
+ };
2350
+
2351
+
2352
+ /**
2353
+ * @param {!proto.supervisor.TunnelVisiblity} value
2354
+ * @return {!proto.supervisor.TunneledPortInfo} returns this
2355
+ */
2356
+ proto.supervisor.TunneledPortInfo.prototype.setVisibility = function(value) {
2357
+ return jspb.Message.setProto3EnumField(this, 2, value);
2358
+ };
2359
+
2360
+
2361
+ /**
2362
+ * map<string, uint32> clients = 3;
2363
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
2364
+ * empty, instead returning `undefined`
2365
+ * @return {!jspb.Map<string,number>}
2366
+ */
2367
+ proto.supervisor.TunneledPortInfo.prototype.getClientsMap = function(opt_noLazyCreate) {
2368
+ return /** @type {!jspb.Map<string,number>} */ (
2369
+ jspb.Message.getMapField(this, 3, opt_noLazyCreate,
2370
+ null));
2371
+ };
2372
+
2373
+
2374
+ /**
2375
+ * Clears values from the map. The map will be non-null.
2376
+ * @return {!proto.supervisor.TunneledPortInfo} returns this
2377
+ */
2378
+ proto.supervisor.TunneledPortInfo.prototype.clearClientsMap = function() {
2379
+ this.getClientsMap().clear();
2380
+ return this;};
2381
+
2382
+
2383
+
2384
+
2385
+
1869
2386
  if (jspb.Message.GENERATE_TO_OBJECT) {
1870
2387
  /**
1871
2388
  * Creates an object representation of this proto.
@@ -1896,9 +2413,12 @@ proto.supervisor.PortsStatus.prototype.toObject = function(opt_includeInstance)
1896
2413
  proto.supervisor.PortsStatus.toObject = function(includeInstance, msg) {
1897
2414
  var f, obj = {
1898
2415
  localPort: jspb.Message.getFieldWithDefault(msg, 1, 0),
1899
- globalPort: jspb.Message.getFieldWithDefault(msg, 2, 0),
1900
2416
  served: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
1901
- exposed: (f = msg.getExposed()) && proto.supervisor.ExposedPortInfo.toObject(includeInstance, f)
2417
+ exposed: (f = msg.getExposed()) && proto.supervisor.ExposedPortInfo.toObject(includeInstance, f),
2418
+ autoExposure: jspb.Message.getFieldWithDefault(msg, 7, 0),
2419
+ tunneled: (f = msg.getTunneled()) && proto.supervisor.TunneledPortInfo.toObject(includeInstance, f),
2420
+ description: jspb.Message.getFieldWithDefault(msg, 8, ""),
2421
+ name: jspb.Message.getFieldWithDefault(msg, 9, "")
1902
2422
  };
1903
2423
 
1904
2424
  if (includeInstance) {
@@ -1939,10 +2459,6 @@ proto.supervisor.PortsStatus.deserializeBinaryFromReader = function(msg, reader)
1939
2459
  var value = /** @type {number} */ (reader.readUint32());
1940
2460
  msg.setLocalPort(value);
1941
2461
  break;
1942
- case 2:
1943
- var value = /** @type {number} */ (reader.readUint32());
1944
- msg.setGlobalPort(value);
1945
- break;
1946
2462
  case 4:
1947
2463
  var value = /** @type {boolean} */ (reader.readBool());
1948
2464
  msg.setServed(value);
@@ -1952,6 +2468,23 @@ proto.supervisor.PortsStatus.deserializeBinaryFromReader = function(msg, reader)
1952
2468
  reader.readMessage(value,proto.supervisor.ExposedPortInfo.deserializeBinaryFromReader);
1953
2469
  msg.setExposed(value);
1954
2470
  break;
2471
+ case 7:
2472
+ var value = /** @type {!proto.supervisor.PortAutoExposure} */ (reader.readEnum());
2473
+ msg.setAutoExposure(value);
2474
+ break;
2475
+ case 6:
2476
+ var value = new proto.supervisor.TunneledPortInfo;
2477
+ reader.readMessage(value,proto.supervisor.TunneledPortInfo.deserializeBinaryFromReader);
2478
+ msg.setTunneled(value);
2479
+ break;
2480
+ case 8:
2481
+ var value = /** @type {string} */ (reader.readString());
2482
+ msg.setDescription(value);
2483
+ break;
2484
+ case 9:
2485
+ var value = /** @type {string} */ (reader.readString());
2486
+ msg.setName(value);
2487
+ break;
1955
2488
  default:
1956
2489
  reader.skipField();
1957
2490
  break;
@@ -1988,13 +2521,6 @@ proto.supervisor.PortsStatus.serializeBinaryToWriter = function(message, writer)
1988
2521
  f
1989
2522
  );
1990
2523
  }
1991
- f = message.getGlobalPort();
1992
- if (f !== 0) {
1993
- writer.writeUint32(
1994
- 2,
1995
- f
1996
- );
1997
- }
1998
2524
  f = message.getServed();
1999
2525
  if (f) {
2000
2526
  writer.writeBool(
@@ -2010,6 +2536,35 @@ proto.supervisor.PortsStatus.serializeBinaryToWriter = function(message, writer)
2010
2536
  proto.supervisor.ExposedPortInfo.serializeBinaryToWriter
2011
2537
  );
2012
2538
  }
2539
+ f = message.getAutoExposure();
2540
+ if (f !== 0.0) {
2541
+ writer.writeEnum(
2542
+ 7,
2543
+ f
2544
+ );
2545
+ }
2546
+ f = message.getTunneled();
2547
+ if (f != null) {
2548
+ writer.writeMessage(
2549
+ 6,
2550
+ f,
2551
+ proto.supervisor.TunneledPortInfo.serializeBinaryToWriter
2552
+ );
2553
+ }
2554
+ f = message.getDescription();
2555
+ if (f.length > 0) {
2556
+ writer.writeString(
2557
+ 8,
2558
+ f
2559
+ );
2560
+ }
2561
+ f = message.getName();
2562
+ if (f.length > 0) {
2563
+ writer.writeString(
2564
+ 9,
2565
+ f
2566
+ );
2567
+ }
2013
2568
  };
2014
2569
 
2015
2570
 
@@ -2031,24 +2586,6 @@ proto.supervisor.PortsStatus.prototype.setLocalPort = function(value) {
2031
2586
  };
2032
2587
 
2033
2588
 
2034
- /**
2035
- * optional uint32 global_port = 2;
2036
- * @return {number}
2037
- */
2038
- proto.supervisor.PortsStatus.prototype.getGlobalPort = function() {
2039
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2040
- };
2041
-
2042
-
2043
- /**
2044
- * @param {number} value
2045
- * @return {!proto.supervisor.PortsStatus} returns this
2046
- */
2047
- proto.supervisor.PortsStatus.prototype.setGlobalPort = function(value) {
2048
- return jspb.Message.setProto3IntField(this, 2, value);
2049
- };
2050
-
2051
-
2052
2589
  /**
2053
2590
  * optional bool served = 4;
2054
2591
  * @return {boolean}
@@ -2104,6 +2641,97 @@ proto.supervisor.PortsStatus.prototype.hasExposed = function() {
2104
2641
  };
2105
2642
 
2106
2643
 
2644
+ /**
2645
+ * optional PortAutoExposure auto_exposure = 7;
2646
+ * @return {!proto.supervisor.PortAutoExposure}
2647
+ */
2648
+ proto.supervisor.PortsStatus.prototype.getAutoExposure = function() {
2649
+ return /** @type {!proto.supervisor.PortAutoExposure} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
2650
+ };
2651
+
2652
+
2653
+ /**
2654
+ * @param {!proto.supervisor.PortAutoExposure} value
2655
+ * @return {!proto.supervisor.PortsStatus} returns this
2656
+ */
2657
+ proto.supervisor.PortsStatus.prototype.setAutoExposure = function(value) {
2658
+ return jspb.Message.setProto3EnumField(this, 7, value);
2659
+ };
2660
+
2661
+
2662
+ /**
2663
+ * optional TunneledPortInfo tunneled = 6;
2664
+ * @return {?proto.supervisor.TunneledPortInfo}
2665
+ */
2666
+ proto.supervisor.PortsStatus.prototype.getTunneled = function() {
2667
+ return /** @type{?proto.supervisor.TunneledPortInfo} */ (
2668
+ jspb.Message.getWrapperField(this, proto.supervisor.TunneledPortInfo, 6));
2669
+ };
2670
+
2671
+
2672
+ /**
2673
+ * @param {?proto.supervisor.TunneledPortInfo|undefined} value
2674
+ * @return {!proto.supervisor.PortsStatus} returns this
2675
+ */
2676
+ proto.supervisor.PortsStatus.prototype.setTunneled = function(value) {
2677
+ return jspb.Message.setWrapperField(this, 6, value);
2678
+ };
2679
+
2680
+
2681
+ /**
2682
+ * Clears the message field making it undefined.
2683
+ * @return {!proto.supervisor.PortsStatus} returns this
2684
+ */
2685
+ proto.supervisor.PortsStatus.prototype.clearTunneled = function() {
2686
+ return this.setTunneled(undefined);
2687
+ };
2688
+
2689
+
2690
+ /**
2691
+ * Returns whether this field is set.
2692
+ * @return {boolean}
2693
+ */
2694
+ proto.supervisor.PortsStatus.prototype.hasTunneled = function() {
2695
+ return jspb.Message.getField(this, 6) != null;
2696
+ };
2697
+
2698
+
2699
+ /**
2700
+ * optional string description = 8;
2701
+ * @return {string}
2702
+ */
2703
+ proto.supervisor.PortsStatus.prototype.getDescription = function() {
2704
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
2705
+ };
2706
+
2707
+
2708
+ /**
2709
+ * @param {string} value
2710
+ * @return {!proto.supervisor.PortsStatus} returns this
2711
+ */
2712
+ proto.supervisor.PortsStatus.prototype.setDescription = function(value) {
2713
+ return jspb.Message.setProto3StringField(this, 8, value);
2714
+ };
2715
+
2716
+
2717
+ /**
2718
+ * optional string name = 9;
2719
+ * @return {string}
2720
+ */
2721
+ proto.supervisor.PortsStatus.prototype.getName = function() {
2722
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
2723
+ };
2724
+
2725
+
2726
+ /**
2727
+ * @param {string} value
2728
+ * @return {!proto.supervisor.PortsStatus} returns this
2729
+ */
2730
+ proto.supervisor.PortsStatus.prototype.setName = function(value) {
2731
+ return jspb.Message.setProto3StringField(this, 9, value);
2732
+ };
2733
+
2734
+
2107
2735
 
2108
2736
 
2109
2737
 
@@ -2853,6 +3481,15 @@ proto.supervisor.OnPortExposedAction = {
2853
3481
  NOTIFY_PRIVATE: 4
2854
3482
  };
2855
3483
 
3484
+ /**
3485
+ * @enum {number}
3486
+ */
3487
+ proto.supervisor.PortAutoExposure = {
3488
+ TRYING: 0,
3489
+ SUCCEEDED: 1,
3490
+ FAILED: 2
3491
+ };
3492
+
2856
3493
  /**
2857
3494
  * @enum {number}
2858
3495
  */