@gitpod/supervisor-api-grpcweb 0.1.5-main.998 → 0.1.5-port-description-3059-fork.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/control_pb.d.ts +0 -4
- package/lib/control_pb.js +8 -32
- package/lib/info_pb.d.ts +16 -0
- package/lib/info_pb.js +128 -2
- package/lib/notification_pb.js +7 -1
- package/lib/port_pb.d.ts +36 -0
- package/lib/port_pb.js +282 -1
- package/lib/port_pb_service.d.ts +19 -0
- package/lib/port_pb_service.js +40 -0
- package/lib/status_pb.d.ts +46 -4
- package/lib/status_pb.js +312 -33
- package/lib/terminal_pb.js +7 -1
- package/lib/token_pb.js +7 -1
- package/package.json +6 -3
- package/pkg-yarn.lock +3 -1
package/lib/control_pb.d.ts
CHANGED
|
@@ -7,9 +7,6 @@ export class ExposePortRequest extends jspb.Message {
|
|
|
7
7
|
getPort(): number;
|
|
8
8
|
setPort(value: number): void;
|
|
9
9
|
|
|
10
|
-
getTargetPort(): number;
|
|
11
|
-
setTargetPort(value: number): void;
|
|
12
|
-
|
|
13
10
|
serializeBinary(): Uint8Array;
|
|
14
11
|
toObject(includeInstance?: boolean): ExposePortRequest.AsObject;
|
|
15
12
|
static toObject(includeInstance: boolean, msg: ExposePortRequest): ExposePortRequest.AsObject;
|
|
@@ -23,7 +20,6 @@ export class ExposePortRequest extends jspb.Message {
|
|
|
23
20
|
export namespace ExposePortRequest {
|
|
24
21
|
export type AsObject = {
|
|
25
22
|
port: number,
|
|
26
|
-
targetPort: number,
|
|
27
23
|
}
|
|
28
24
|
}
|
|
29
25
|
|
package/lib/control_pb.js
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
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));
|
|
17
23
|
|
|
18
24
|
goog.exportSymbol('proto.supervisor.ExposePortRequest', null, global);
|
|
19
25
|
goog.exportSymbol('proto.supervisor.ExposePortResponse', null, global);
|
|
@@ -91,8 +97,7 @@ proto.supervisor.ExposePortRequest.prototype.toObject = function(opt_includeInst
|
|
|
91
97
|
*/
|
|
92
98
|
proto.supervisor.ExposePortRequest.toObject = function(includeInstance, msg) {
|
|
93
99
|
var f, obj = {
|
|
94
|
-
port: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
95
|
-
targetPort: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
100
|
+
port: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
96
101
|
};
|
|
97
102
|
|
|
98
103
|
if (includeInstance) {
|
|
@@ -133,10 +138,6 @@ proto.supervisor.ExposePortRequest.deserializeBinaryFromReader = function(msg, r
|
|
|
133
138
|
var value = /** @type {number} */ (reader.readUint32());
|
|
134
139
|
msg.setPort(value);
|
|
135
140
|
break;
|
|
136
|
-
case 2:
|
|
137
|
-
var value = /** @type {number} */ (reader.readUint32());
|
|
138
|
-
msg.setTargetPort(value);
|
|
139
|
-
break;
|
|
140
141
|
default:
|
|
141
142
|
reader.skipField();
|
|
142
143
|
break;
|
|
@@ -173,13 +174,6 @@ proto.supervisor.ExposePortRequest.serializeBinaryToWriter = function(message, w
|
|
|
173
174
|
f
|
|
174
175
|
);
|
|
175
176
|
}
|
|
176
|
-
f = message.getTargetPort();
|
|
177
|
-
if (f !== 0) {
|
|
178
|
-
writer.writeUint32(
|
|
179
|
-
2,
|
|
180
|
-
f
|
|
181
|
-
);
|
|
182
|
-
}
|
|
183
177
|
};
|
|
184
178
|
|
|
185
179
|
|
|
@@ -201,24 +195,6 @@ proto.supervisor.ExposePortRequest.prototype.setPort = function(value) {
|
|
|
201
195
|
};
|
|
202
196
|
|
|
203
197
|
|
|
204
|
-
/**
|
|
205
|
-
* optional uint32 target_port = 2;
|
|
206
|
-
* @return {number}
|
|
207
|
-
*/
|
|
208
|
-
proto.supervisor.ExposePortRequest.prototype.getTargetPort = function() {
|
|
209
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
210
|
-
};
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* @param {number} value
|
|
215
|
-
* @return {!proto.supervisor.ExposePortRequest} returns this
|
|
216
|
-
*/
|
|
217
|
-
proto.supervisor.ExposePortRequest.prototype.setTargetPort = function(value) {
|
|
218
|
-
return jspb.Message.setProto3IntField(this, 2, value);
|
|
219
|
-
};
|
|
220
|
-
|
|
221
|
-
|
|
222
198
|
|
|
223
199
|
|
|
224
200
|
|
package/lib/info_pb.d.ts
CHANGED
|
@@ -58,6 +58,18 @@ export class WorkspaceInfoResponse extends jspb.Message {
|
|
|
58
58
|
getRepository(): WorkspaceInfoResponse.Repository | undefined;
|
|
59
59
|
setRepository(value?: WorkspaceInfoResponse.Repository): void;
|
|
60
60
|
|
|
61
|
+
getWorkspaceClusterHost(): string;
|
|
62
|
+
setWorkspaceClusterHost(value: string): void;
|
|
63
|
+
|
|
64
|
+
getWorkspaceUrl(): string;
|
|
65
|
+
setWorkspaceUrl(value: string): void;
|
|
66
|
+
|
|
67
|
+
getIdeAlias(): string;
|
|
68
|
+
setIdeAlias(value: string): void;
|
|
69
|
+
|
|
70
|
+
getIdePort(): number;
|
|
71
|
+
setIdePort(value: number): void;
|
|
72
|
+
|
|
61
73
|
getWorkspaceLocationCase(): WorkspaceInfoResponse.WorkspaceLocationCase;
|
|
62
74
|
serializeBinary(): Uint8Array;
|
|
63
75
|
toObject(includeInstance?: boolean): WorkspaceInfoResponse.AsObject;
|
|
@@ -81,6 +93,10 @@ export namespace WorkspaceInfoResponse {
|
|
|
81
93
|
gitpodHost: string,
|
|
82
94
|
workspaceContextUrl: string,
|
|
83
95
|
repository?: WorkspaceInfoResponse.Repository.AsObject,
|
|
96
|
+
workspaceClusterHost: string,
|
|
97
|
+
workspaceUrl: string,
|
|
98
|
+
ideAlias: string,
|
|
99
|
+
idePort: number,
|
|
84
100
|
}
|
|
85
101
|
|
|
86
102
|
export class GitpodAPI extends jspb.Message {
|
package/lib/info_pb.js
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
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));
|
|
17
23
|
|
|
18
24
|
goog.exportSymbol('proto.supervisor.WorkspaceInfoRequest', null, global);
|
|
19
25
|
goog.exportSymbol('proto.supervisor.WorkspaceInfoResponse', null, global);
|
|
@@ -272,7 +278,11 @@ proto.supervisor.WorkspaceInfoResponse.toObject = function(includeInstance, msg)
|
|
|
272
278
|
gitpodApi: (f = msg.getGitpodApi()) && proto.supervisor.WorkspaceInfoResponse.GitpodAPI.toObject(includeInstance, f),
|
|
273
279
|
gitpodHost: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
274
280
|
workspaceContextUrl: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
275
|
-
repository: (f = msg.getRepository()) && proto.supervisor.WorkspaceInfoResponse.Repository.toObject(includeInstance, f)
|
|
281
|
+
repository: (f = msg.getRepository()) && proto.supervisor.WorkspaceInfoResponse.Repository.toObject(includeInstance, f),
|
|
282
|
+
workspaceClusterHost: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
283
|
+
workspaceUrl: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
284
|
+
ideAlias: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
285
|
+
idePort: jspb.Message.getFieldWithDefault(msg, 14, 0)
|
|
276
286
|
};
|
|
277
287
|
|
|
278
288
|
if (includeInstance) {
|
|
@@ -351,6 +361,22 @@ proto.supervisor.WorkspaceInfoResponse.deserializeBinaryFromReader = function(ms
|
|
|
351
361
|
reader.readMessage(value,proto.supervisor.WorkspaceInfoResponse.Repository.deserializeBinaryFromReader);
|
|
352
362
|
msg.setRepository(value);
|
|
353
363
|
break;
|
|
364
|
+
case 11:
|
|
365
|
+
var value = /** @type {string} */ (reader.readString());
|
|
366
|
+
msg.setWorkspaceClusterHost(value);
|
|
367
|
+
break;
|
|
368
|
+
case 12:
|
|
369
|
+
var value = /** @type {string} */ (reader.readString());
|
|
370
|
+
msg.setWorkspaceUrl(value);
|
|
371
|
+
break;
|
|
372
|
+
case 13:
|
|
373
|
+
var value = /** @type {string} */ (reader.readString());
|
|
374
|
+
msg.setIdeAlias(value);
|
|
375
|
+
break;
|
|
376
|
+
case 14:
|
|
377
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
378
|
+
msg.setIdePort(value);
|
|
379
|
+
break;
|
|
354
380
|
default:
|
|
355
381
|
reader.skipField();
|
|
356
382
|
break;
|
|
@@ -452,6 +478,34 @@ proto.supervisor.WorkspaceInfoResponse.serializeBinaryToWriter = function(messag
|
|
|
452
478
|
proto.supervisor.WorkspaceInfoResponse.Repository.serializeBinaryToWriter
|
|
453
479
|
);
|
|
454
480
|
}
|
|
481
|
+
f = message.getWorkspaceClusterHost();
|
|
482
|
+
if (f.length > 0) {
|
|
483
|
+
writer.writeString(
|
|
484
|
+
11,
|
|
485
|
+
f
|
|
486
|
+
);
|
|
487
|
+
}
|
|
488
|
+
f = message.getWorkspaceUrl();
|
|
489
|
+
if (f.length > 0) {
|
|
490
|
+
writer.writeString(
|
|
491
|
+
12,
|
|
492
|
+
f
|
|
493
|
+
);
|
|
494
|
+
}
|
|
495
|
+
f = message.getIdeAlias();
|
|
496
|
+
if (f.length > 0) {
|
|
497
|
+
writer.writeString(
|
|
498
|
+
13,
|
|
499
|
+
f
|
|
500
|
+
);
|
|
501
|
+
}
|
|
502
|
+
f = message.getIdePort();
|
|
503
|
+
if (f !== 0) {
|
|
504
|
+
writer.writeUint32(
|
|
505
|
+
14,
|
|
506
|
+
f
|
|
507
|
+
);
|
|
508
|
+
}
|
|
455
509
|
};
|
|
456
510
|
|
|
457
511
|
|
|
@@ -1029,4 +1083,76 @@ proto.supervisor.WorkspaceInfoResponse.prototype.hasRepository = function() {
|
|
|
1029
1083
|
};
|
|
1030
1084
|
|
|
1031
1085
|
|
|
1086
|
+
/**
|
|
1087
|
+
* optional string workspace_cluster_host = 11;
|
|
1088
|
+
* @return {string}
|
|
1089
|
+
*/
|
|
1090
|
+
proto.supervisor.WorkspaceInfoResponse.prototype.getWorkspaceClusterHost = function() {
|
|
1091
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
|
1092
|
+
};
|
|
1093
|
+
|
|
1094
|
+
|
|
1095
|
+
/**
|
|
1096
|
+
* @param {string} value
|
|
1097
|
+
* @return {!proto.supervisor.WorkspaceInfoResponse} returns this
|
|
1098
|
+
*/
|
|
1099
|
+
proto.supervisor.WorkspaceInfoResponse.prototype.setWorkspaceClusterHost = function(value) {
|
|
1100
|
+
return jspb.Message.setProto3StringField(this, 11, value);
|
|
1101
|
+
};
|
|
1102
|
+
|
|
1103
|
+
|
|
1104
|
+
/**
|
|
1105
|
+
* optional string workspace_url = 12;
|
|
1106
|
+
* @return {string}
|
|
1107
|
+
*/
|
|
1108
|
+
proto.supervisor.WorkspaceInfoResponse.prototype.getWorkspaceUrl = function() {
|
|
1109
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
|
|
1110
|
+
};
|
|
1111
|
+
|
|
1112
|
+
|
|
1113
|
+
/**
|
|
1114
|
+
* @param {string} value
|
|
1115
|
+
* @return {!proto.supervisor.WorkspaceInfoResponse} returns this
|
|
1116
|
+
*/
|
|
1117
|
+
proto.supervisor.WorkspaceInfoResponse.prototype.setWorkspaceUrl = function(value) {
|
|
1118
|
+
return jspb.Message.setProto3StringField(this, 12, value);
|
|
1119
|
+
};
|
|
1120
|
+
|
|
1121
|
+
|
|
1122
|
+
/**
|
|
1123
|
+
* optional string ide_alias = 13;
|
|
1124
|
+
* @return {string}
|
|
1125
|
+
*/
|
|
1126
|
+
proto.supervisor.WorkspaceInfoResponse.prototype.getIdeAlias = function() {
|
|
1127
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
|
|
1128
|
+
};
|
|
1129
|
+
|
|
1130
|
+
|
|
1131
|
+
/**
|
|
1132
|
+
* @param {string} value
|
|
1133
|
+
* @return {!proto.supervisor.WorkspaceInfoResponse} returns this
|
|
1134
|
+
*/
|
|
1135
|
+
proto.supervisor.WorkspaceInfoResponse.prototype.setIdeAlias = function(value) {
|
|
1136
|
+
return jspb.Message.setProto3StringField(this, 13, value);
|
|
1137
|
+
};
|
|
1138
|
+
|
|
1139
|
+
|
|
1140
|
+
/**
|
|
1141
|
+
* optional uint32 ide_port = 14;
|
|
1142
|
+
* @return {number}
|
|
1143
|
+
*/
|
|
1144
|
+
proto.supervisor.WorkspaceInfoResponse.prototype.getIdePort = function() {
|
|
1145
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
|
|
1146
|
+
};
|
|
1147
|
+
|
|
1148
|
+
|
|
1149
|
+
/**
|
|
1150
|
+
* @param {number} value
|
|
1151
|
+
* @return {!proto.supervisor.WorkspaceInfoResponse} returns this
|
|
1152
|
+
*/
|
|
1153
|
+
proto.supervisor.WorkspaceInfoResponse.prototype.setIdePort = function(value) {
|
|
1154
|
+
return jspb.Message.setProto3IntField(this, 14, value);
|
|
1155
|
+
};
|
|
1156
|
+
|
|
1157
|
+
|
|
1032
1158
|
goog.object.extend(exports, proto.supervisor);
|
package/lib/notification_pb.js
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
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));
|
|
17
23
|
|
|
18
24
|
goog.exportSymbol('proto.supervisor.NotifyRequest', null, global);
|
|
19
25
|
goog.exportSymbol('proto.supervisor.NotifyRequest.Level', null, global);
|
package/lib/port_pb.d.ts
CHANGED
|
@@ -182,6 +182,42 @@ export namespace AutoTunnelResponse {
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
+
export class RetryAutoExposeRequest extends jspb.Message {
|
|
186
|
+
getPort(): number;
|
|
187
|
+
setPort(value: number): void;
|
|
188
|
+
|
|
189
|
+
serializeBinary(): Uint8Array;
|
|
190
|
+
toObject(includeInstance?: boolean): RetryAutoExposeRequest.AsObject;
|
|
191
|
+
static toObject(includeInstance: boolean, msg: RetryAutoExposeRequest): RetryAutoExposeRequest.AsObject;
|
|
192
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
193
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
194
|
+
static serializeBinaryToWriter(message: RetryAutoExposeRequest, writer: jspb.BinaryWriter): void;
|
|
195
|
+
static deserializeBinary(bytes: Uint8Array): RetryAutoExposeRequest;
|
|
196
|
+
static deserializeBinaryFromReader(message: RetryAutoExposeRequest, reader: jspb.BinaryReader): RetryAutoExposeRequest;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export namespace RetryAutoExposeRequest {
|
|
200
|
+
export type AsObject = {
|
|
201
|
+
port: number,
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export class RetryAutoExposeResponse extends jspb.Message {
|
|
206
|
+
serializeBinary(): Uint8Array;
|
|
207
|
+
toObject(includeInstance?: boolean): RetryAutoExposeResponse.AsObject;
|
|
208
|
+
static toObject(includeInstance: boolean, msg: RetryAutoExposeResponse): RetryAutoExposeResponse.AsObject;
|
|
209
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
210
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
211
|
+
static serializeBinaryToWriter(message: RetryAutoExposeResponse, writer: jspb.BinaryWriter): void;
|
|
212
|
+
static deserializeBinary(bytes: Uint8Array): RetryAutoExposeResponse;
|
|
213
|
+
static deserializeBinaryFromReader(message: RetryAutoExposeResponse, reader: jspb.BinaryReader): RetryAutoExposeResponse;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export namespace RetryAutoExposeResponse {
|
|
217
|
+
export type AsObject = {
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
185
221
|
export interface TunnelVisiblityMap {
|
|
186
222
|
NONE: 0;
|
|
187
223
|
HOST: 1;
|
package/lib/port_pb.js
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
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));
|
|
17
23
|
|
|
18
24
|
goog.exportSymbol('proto.supervisor.AutoTunnelRequest', null, global);
|
|
19
25
|
goog.exportSymbol('proto.supervisor.AutoTunnelResponse', null, global);
|
|
@@ -22,6 +28,8 @@ goog.exportSymbol('proto.supervisor.CloseTunnelResponse', null, global);
|
|
|
22
28
|
goog.exportSymbol('proto.supervisor.EstablishTunnelRequest', null, global);
|
|
23
29
|
goog.exportSymbol('proto.supervisor.EstablishTunnelRequest.OutputCase', null, global);
|
|
24
30
|
goog.exportSymbol('proto.supervisor.EstablishTunnelResponse', null, global);
|
|
31
|
+
goog.exportSymbol('proto.supervisor.RetryAutoExposeRequest', null, global);
|
|
32
|
+
goog.exportSymbol('proto.supervisor.RetryAutoExposeResponse', null, global);
|
|
25
33
|
goog.exportSymbol('proto.supervisor.TunnelPortRequest', null, global);
|
|
26
34
|
goog.exportSymbol('proto.supervisor.TunnelPortResponse', null, global);
|
|
27
35
|
goog.exportSymbol('proto.supervisor.TunnelVisiblity', null, global);
|
|
@@ -193,6 +201,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
193
201
|
*/
|
|
194
202
|
proto.supervisor.AutoTunnelResponse.displayName = 'proto.supervisor.AutoTunnelResponse';
|
|
195
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
|
+
}
|
|
196
246
|
|
|
197
247
|
|
|
198
248
|
|
|
@@ -1379,6 +1429,237 @@ proto.supervisor.AutoTunnelResponse.serializeBinaryToWriter = function(message,
|
|
|
1379
1429
|
};
|
|
1380
1430
|
|
|
1381
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
|
+
|
|
1382
1663
|
/**
|
|
1383
1664
|
* @enum {number}
|
|
1384
1665
|
*/
|
package/lib/port_pb_service.d.ts
CHANGED
|
@@ -40,12 +40,22 @@ type PortServiceAutoTunnel = {
|
|
|
40
40
|
readonly responseType: typeof port_pb.AutoTunnelResponse;
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
+
type PortServiceRetryAutoExpose = {
|
|
44
|
+
readonly methodName: string;
|
|
45
|
+
readonly service: typeof PortService;
|
|
46
|
+
readonly requestStream: false;
|
|
47
|
+
readonly responseStream: false;
|
|
48
|
+
readonly requestType: typeof port_pb.RetryAutoExposeRequest;
|
|
49
|
+
readonly responseType: typeof port_pb.RetryAutoExposeResponse;
|
|
50
|
+
};
|
|
51
|
+
|
|
43
52
|
export class PortService {
|
|
44
53
|
static readonly serviceName: string;
|
|
45
54
|
static readonly Tunnel: PortServiceTunnel;
|
|
46
55
|
static readonly CloseTunnel: PortServiceCloseTunnel;
|
|
47
56
|
static readonly EstablishTunnel: PortServiceEstablishTunnel;
|
|
48
57
|
static readonly AutoTunnel: PortServiceAutoTunnel;
|
|
58
|
+
static readonly RetryAutoExpose: PortServiceRetryAutoExpose;
|
|
49
59
|
}
|
|
50
60
|
|
|
51
61
|
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
@@ -108,5 +118,14 @@ export class PortServiceClient {
|
|
|
108
118
|
requestMessage: port_pb.AutoTunnelRequest,
|
|
109
119
|
callback: (error: ServiceError|null, responseMessage: port_pb.AutoTunnelResponse|null) => void
|
|
110
120
|
): UnaryResponse;
|
|
121
|
+
retryAutoExpose(
|
|
122
|
+
requestMessage: port_pb.RetryAutoExposeRequest,
|
|
123
|
+
metadata: grpc.Metadata,
|
|
124
|
+
callback: (error: ServiceError|null, responseMessage: port_pb.RetryAutoExposeResponse|null) => void
|
|
125
|
+
): UnaryResponse;
|
|
126
|
+
retryAutoExpose(
|
|
127
|
+
requestMessage: port_pb.RetryAutoExposeRequest,
|
|
128
|
+
callback: (error: ServiceError|null, responseMessage: port_pb.RetryAutoExposeResponse|null) => void
|
|
129
|
+
): UnaryResponse;
|
|
111
130
|
}
|
|
112
131
|
|
package/lib/port_pb_service.js
CHANGED
|
@@ -46,6 +46,15 @@ PortService.AutoTunnel = {
|
|
|
46
46
|
responseType: port_pb.AutoTunnelResponse
|
|
47
47
|
};
|
|
48
48
|
|
|
49
|
+
PortService.RetryAutoExpose = {
|
|
50
|
+
methodName: "RetryAutoExpose",
|
|
51
|
+
service: PortService,
|
|
52
|
+
requestStream: false,
|
|
53
|
+
responseStream: false,
|
|
54
|
+
requestType: port_pb.RetryAutoExposeRequest,
|
|
55
|
+
responseType: port_pb.RetryAutoExposeResponse
|
|
56
|
+
};
|
|
57
|
+
|
|
49
58
|
exports.PortService = PortService;
|
|
50
59
|
|
|
51
60
|
function PortServiceClient(serviceHost, options) {
|
|
@@ -191,5 +200,36 @@ PortServiceClient.prototype.autoTunnel = function autoTunnel(requestMessage, met
|
|
|
191
200
|
};
|
|
192
201
|
};
|
|
193
202
|
|
|
203
|
+
PortServiceClient.prototype.retryAutoExpose = function retryAutoExpose(requestMessage, metadata, callback) {
|
|
204
|
+
if (arguments.length === 2) {
|
|
205
|
+
callback = arguments[1];
|
|
206
|
+
}
|
|
207
|
+
var client = grpc.unary(PortService.RetryAutoExpose, {
|
|
208
|
+
request: requestMessage,
|
|
209
|
+
host: this.serviceHost,
|
|
210
|
+
metadata: metadata,
|
|
211
|
+
transport: this.options.transport,
|
|
212
|
+
debug: this.options.debug,
|
|
213
|
+
onEnd: function (response) {
|
|
214
|
+
if (callback) {
|
|
215
|
+
if (response.status !== grpc.Code.OK) {
|
|
216
|
+
var err = new Error(response.statusMessage);
|
|
217
|
+
err.code = response.status;
|
|
218
|
+
err.metadata = response.trailers;
|
|
219
|
+
callback(err, null);
|
|
220
|
+
} else {
|
|
221
|
+
callback(null, response.message);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
return {
|
|
227
|
+
cancel: function () {
|
|
228
|
+
callback = null;
|
|
229
|
+
client.close();
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
|
|
194
234
|
exports.PortServiceClient = PortServiceClient;
|
|
195
235
|
|
package/lib/status_pb.d.ts
CHANGED
|
@@ -64,6 +64,11 @@ export class IDEStatusResponse extends jspb.Message {
|
|
|
64
64
|
getOk(): boolean;
|
|
65
65
|
setOk(value: boolean): void;
|
|
66
66
|
|
|
67
|
+
hasDesktop(): boolean;
|
|
68
|
+
clearDesktop(): void;
|
|
69
|
+
getDesktop(): IDEStatusResponse.DesktopStatus | undefined;
|
|
70
|
+
setDesktop(value?: IDEStatusResponse.DesktopStatus): void;
|
|
71
|
+
|
|
67
72
|
serializeBinary(): Uint8Array;
|
|
68
73
|
toObject(includeInstance?: boolean): IDEStatusResponse.AsObject;
|
|
69
74
|
static toObject(includeInstance: boolean, msg: IDEStatusResponse): IDEStatusResponse.AsObject;
|
|
@@ -77,6 +82,31 @@ export class IDEStatusResponse extends jspb.Message {
|
|
|
77
82
|
export namespace IDEStatusResponse {
|
|
78
83
|
export type AsObject = {
|
|
79
84
|
ok: boolean,
|
|
85
|
+
desktop?: IDEStatusResponse.DesktopStatus.AsObject,
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export class DesktopStatus extends jspb.Message {
|
|
89
|
+
getLink(): string;
|
|
90
|
+
setLink(value: string): void;
|
|
91
|
+
|
|
92
|
+
getLabel(): string;
|
|
93
|
+
setLabel(value: string): void;
|
|
94
|
+
|
|
95
|
+
serializeBinary(): Uint8Array;
|
|
96
|
+
toObject(includeInstance?: boolean): DesktopStatus.AsObject;
|
|
97
|
+
static toObject(includeInstance: boolean, msg: DesktopStatus): DesktopStatus.AsObject;
|
|
98
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
99
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
100
|
+
static serializeBinaryToWriter(message: DesktopStatus, writer: jspb.BinaryWriter): void;
|
|
101
|
+
static deserializeBinary(bytes: Uint8Array): DesktopStatus;
|
|
102
|
+
static deserializeBinaryFromReader(message: DesktopStatus, reader: jspb.BinaryReader): DesktopStatus;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export namespace DesktopStatus {
|
|
106
|
+
export type AsObject = {
|
|
107
|
+
link: string,
|
|
108
|
+
label: string,
|
|
109
|
+
}
|
|
80
110
|
}
|
|
81
111
|
}
|
|
82
112
|
|
|
@@ -261,9 +291,6 @@ export class PortsStatus extends jspb.Message {
|
|
|
261
291
|
getLocalPort(): number;
|
|
262
292
|
setLocalPort(value: number): void;
|
|
263
293
|
|
|
264
|
-
getGlobalPort(): number;
|
|
265
|
-
setGlobalPort(value: number): void;
|
|
266
|
-
|
|
267
294
|
getServed(): boolean;
|
|
268
295
|
setServed(value: boolean): void;
|
|
269
296
|
|
|
@@ -272,11 +299,17 @@ export class PortsStatus extends jspb.Message {
|
|
|
272
299
|
getExposed(): ExposedPortInfo | undefined;
|
|
273
300
|
setExposed(value?: ExposedPortInfo): void;
|
|
274
301
|
|
|
302
|
+
getAutoExposure(): PortAutoExposureMap[keyof PortAutoExposureMap];
|
|
303
|
+
setAutoExposure(value: PortAutoExposureMap[keyof PortAutoExposureMap]): void;
|
|
304
|
+
|
|
275
305
|
hasTunneled(): boolean;
|
|
276
306
|
clearTunneled(): void;
|
|
277
307
|
getTunneled(): TunneledPortInfo | undefined;
|
|
278
308
|
setTunneled(value?: TunneledPortInfo): void;
|
|
279
309
|
|
|
310
|
+
getDescription(): string;
|
|
311
|
+
setDescription(value: string): void;
|
|
312
|
+
|
|
280
313
|
serializeBinary(): Uint8Array;
|
|
281
314
|
toObject(includeInstance?: boolean): PortsStatus.AsObject;
|
|
282
315
|
static toObject(includeInstance: boolean, msg: PortsStatus): PortsStatus.AsObject;
|
|
@@ -290,10 +323,11 @@ export class PortsStatus extends jspb.Message {
|
|
|
290
323
|
export namespace PortsStatus {
|
|
291
324
|
export type AsObject = {
|
|
292
325
|
localPort: number,
|
|
293
|
-
globalPort: number,
|
|
294
326
|
served: boolean,
|
|
295
327
|
exposed?: ExposedPortInfo.AsObject,
|
|
328
|
+
autoExposure: PortAutoExposureMap[keyof PortAutoExposureMap],
|
|
296
329
|
tunneled?: TunneledPortInfo.AsObject,
|
|
330
|
+
description: string,
|
|
297
331
|
}
|
|
298
332
|
}
|
|
299
333
|
|
|
@@ -426,6 +460,14 @@ export interface OnPortExposedActionMap {
|
|
|
426
460
|
|
|
427
461
|
export const OnPortExposedAction: OnPortExposedActionMap;
|
|
428
462
|
|
|
463
|
+
export interface PortAutoExposureMap {
|
|
464
|
+
TRYING: 0;
|
|
465
|
+
SUCCEEDED: 1;
|
|
466
|
+
FAILED: 2;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
export const PortAutoExposure: PortAutoExposureMap;
|
|
470
|
+
|
|
429
471
|
export interface TaskStateMap {
|
|
430
472
|
OPENING: 0;
|
|
431
473
|
RUNNING: 1;
|
package/lib/status_pb.js
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
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));
|
|
17
23
|
|
|
18
24
|
var port_pb = require('./port_pb.js');
|
|
19
25
|
goog.object.extend(proto, port_pb);
|
|
@@ -25,7 +31,9 @@ goog.exportSymbol('proto.supervisor.ContentStatusResponse', null, global);
|
|
|
25
31
|
goog.exportSymbol('proto.supervisor.ExposedPortInfo', null, global);
|
|
26
32
|
goog.exportSymbol('proto.supervisor.IDEStatusRequest', null, global);
|
|
27
33
|
goog.exportSymbol('proto.supervisor.IDEStatusResponse', null, global);
|
|
34
|
+
goog.exportSymbol('proto.supervisor.IDEStatusResponse.DesktopStatus', null, global);
|
|
28
35
|
goog.exportSymbol('proto.supervisor.OnPortExposedAction', null, global);
|
|
36
|
+
goog.exportSymbol('proto.supervisor.PortAutoExposure', null, global);
|
|
29
37
|
goog.exportSymbol('proto.supervisor.PortVisibility', null, global);
|
|
30
38
|
goog.exportSymbol('proto.supervisor.PortsStatus', null, global);
|
|
31
39
|
goog.exportSymbol('proto.supervisor.PortsStatusRequest', null, global);
|
|
@@ -122,6 +130,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
122
130
|
*/
|
|
123
131
|
proto.supervisor.IDEStatusResponse.displayName = 'proto.supervisor.IDEStatusResponse';
|
|
124
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
|
+
}
|
|
125
154
|
/**
|
|
126
155
|
* Generated by JsPbCodeGenerator.
|
|
127
156
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -788,7 +817,8 @@ proto.supervisor.IDEStatusResponse.prototype.toObject = function(opt_includeInst
|
|
|
788
817
|
*/
|
|
789
818
|
proto.supervisor.IDEStatusResponse.toObject = function(includeInstance, msg) {
|
|
790
819
|
var f, obj = {
|
|
791
|
-
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)
|
|
792
822
|
};
|
|
793
823
|
|
|
794
824
|
if (includeInstance) {
|
|
@@ -829,6 +859,11 @@ proto.supervisor.IDEStatusResponse.deserializeBinaryFromReader = function(msg, r
|
|
|
829
859
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
830
860
|
msg.setOk(value);
|
|
831
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;
|
|
832
867
|
default:
|
|
833
868
|
reader.skipField();
|
|
834
869
|
break;
|
|
@@ -865,6 +900,174 @@ proto.supervisor.IDEStatusResponse.serializeBinaryToWriter = function(message, w
|
|
|
865
900
|
f
|
|
866
901
|
);
|
|
867
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
|
+
};
|
|
949
|
+
|
|
950
|
+
if (includeInstance) {
|
|
951
|
+
obj.$jspbMessageInstance = msg;
|
|
952
|
+
}
|
|
953
|
+
return obj;
|
|
954
|
+
};
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
|
|
958
|
+
/**
|
|
959
|
+
* Deserializes binary data (in protobuf wire format).
|
|
960
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
961
|
+
* @return {!proto.supervisor.IDEStatusResponse.DesktopStatus}
|
|
962
|
+
*/
|
|
963
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.deserializeBinary = function(bytes) {
|
|
964
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
965
|
+
var msg = new proto.supervisor.IDEStatusResponse.DesktopStatus;
|
|
966
|
+
return proto.supervisor.IDEStatusResponse.DesktopStatus.deserializeBinaryFromReader(msg, reader);
|
|
967
|
+
};
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
972
|
+
* given reader into the given message object.
|
|
973
|
+
* @param {!proto.supervisor.IDEStatusResponse.DesktopStatus} msg The message object to deserialize into.
|
|
974
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
975
|
+
* @return {!proto.supervisor.IDEStatusResponse.DesktopStatus}
|
|
976
|
+
*/
|
|
977
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.deserializeBinaryFromReader = function(msg, reader) {
|
|
978
|
+
while (reader.nextField()) {
|
|
979
|
+
if (reader.isEndGroup()) {
|
|
980
|
+
break;
|
|
981
|
+
}
|
|
982
|
+
var field = reader.getFieldNumber();
|
|
983
|
+
switch (field) {
|
|
984
|
+
case 1:
|
|
985
|
+
var value = /** @type {string} */ (reader.readString());
|
|
986
|
+
msg.setLink(value);
|
|
987
|
+
break;
|
|
988
|
+
case 2:
|
|
989
|
+
var value = /** @type {string} */ (reader.readString());
|
|
990
|
+
msg.setLabel(value);
|
|
991
|
+
break;
|
|
992
|
+
default:
|
|
993
|
+
reader.skipField();
|
|
994
|
+
break;
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
return msg;
|
|
998
|
+
};
|
|
999
|
+
|
|
1000
|
+
|
|
1001
|
+
/**
|
|
1002
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1003
|
+
* @return {!Uint8Array}
|
|
1004
|
+
*/
|
|
1005
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.serializeBinary = function() {
|
|
1006
|
+
var writer = new jspb.BinaryWriter();
|
|
1007
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.serializeBinaryToWriter(this, writer);
|
|
1008
|
+
return writer.getResultBuffer();
|
|
1009
|
+
};
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
/**
|
|
1013
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1014
|
+
* format), writing to the given BinaryWriter.
|
|
1015
|
+
* @param {!proto.supervisor.IDEStatusResponse.DesktopStatus} message
|
|
1016
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1017
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1018
|
+
*/
|
|
1019
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.serializeBinaryToWriter = function(message, writer) {
|
|
1020
|
+
var f = undefined;
|
|
1021
|
+
f = message.getLink();
|
|
1022
|
+
if (f.length > 0) {
|
|
1023
|
+
writer.writeString(
|
|
1024
|
+
1,
|
|
1025
|
+
f
|
|
1026
|
+
);
|
|
1027
|
+
}
|
|
1028
|
+
f = message.getLabel();
|
|
1029
|
+
if (f.length > 0) {
|
|
1030
|
+
writer.writeString(
|
|
1031
|
+
2,
|
|
1032
|
+
f
|
|
1033
|
+
);
|
|
1034
|
+
}
|
|
1035
|
+
};
|
|
1036
|
+
|
|
1037
|
+
|
|
1038
|
+
/**
|
|
1039
|
+
* optional string link = 1;
|
|
1040
|
+
* @return {string}
|
|
1041
|
+
*/
|
|
1042
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.getLink = function() {
|
|
1043
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1044
|
+
};
|
|
1045
|
+
|
|
1046
|
+
|
|
1047
|
+
/**
|
|
1048
|
+
* @param {string} value
|
|
1049
|
+
* @return {!proto.supervisor.IDEStatusResponse.DesktopStatus} returns this
|
|
1050
|
+
*/
|
|
1051
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.setLink = function(value) {
|
|
1052
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1053
|
+
};
|
|
1054
|
+
|
|
1055
|
+
|
|
1056
|
+
/**
|
|
1057
|
+
* optional string label = 2;
|
|
1058
|
+
* @return {string}
|
|
1059
|
+
*/
|
|
1060
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.getLabel = function() {
|
|
1061
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1062
|
+
};
|
|
1063
|
+
|
|
1064
|
+
|
|
1065
|
+
/**
|
|
1066
|
+
* @param {string} value
|
|
1067
|
+
* @return {!proto.supervisor.IDEStatusResponse.DesktopStatus} returns this
|
|
1068
|
+
*/
|
|
1069
|
+
proto.supervisor.IDEStatusResponse.DesktopStatus.prototype.setLabel = function(value) {
|
|
1070
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
868
1071
|
};
|
|
869
1072
|
|
|
870
1073
|
|
|
@@ -886,6 +1089,43 @@ proto.supervisor.IDEStatusResponse.prototype.setOk = function(value) {
|
|
|
886
1089
|
};
|
|
887
1090
|
|
|
888
1091
|
|
|
1092
|
+
/**
|
|
1093
|
+
* optional DesktopStatus desktop = 2;
|
|
1094
|
+
* @return {?proto.supervisor.IDEStatusResponse.DesktopStatus}
|
|
1095
|
+
*/
|
|
1096
|
+
proto.supervisor.IDEStatusResponse.prototype.getDesktop = function() {
|
|
1097
|
+
return /** @type{?proto.supervisor.IDEStatusResponse.DesktopStatus} */ (
|
|
1098
|
+
jspb.Message.getWrapperField(this, proto.supervisor.IDEStatusResponse.DesktopStatus, 2));
|
|
1099
|
+
};
|
|
1100
|
+
|
|
1101
|
+
|
|
1102
|
+
/**
|
|
1103
|
+
* @param {?proto.supervisor.IDEStatusResponse.DesktopStatus|undefined} value
|
|
1104
|
+
* @return {!proto.supervisor.IDEStatusResponse} returns this
|
|
1105
|
+
*/
|
|
1106
|
+
proto.supervisor.IDEStatusResponse.prototype.setDesktop = function(value) {
|
|
1107
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
1108
|
+
};
|
|
1109
|
+
|
|
1110
|
+
|
|
1111
|
+
/**
|
|
1112
|
+
* Clears the message field making it undefined.
|
|
1113
|
+
* @return {!proto.supervisor.IDEStatusResponse} returns this
|
|
1114
|
+
*/
|
|
1115
|
+
proto.supervisor.IDEStatusResponse.prototype.clearDesktop = function() {
|
|
1116
|
+
return this.setDesktop(undefined);
|
|
1117
|
+
};
|
|
1118
|
+
|
|
1119
|
+
|
|
1120
|
+
/**
|
|
1121
|
+
* Returns whether this field is set.
|
|
1122
|
+
* @return {boolean}
|
|
1123
|
+
*/
|
|
1124
|
+
proto.supervisor.IDEStatusResponse.prototype.hasDesktop = function() {
|
|
1125
|
+
return jspb.Message.getField(this, 2) != null;
|
|
1126
|
+
};
|
|
1127
|
+
|
|
1128
|
+
|
|
889
1129
|
|
|
890
1130
|
|
|
891
1131
|
|
|
@@ -2113,10 +2353,11 @@ proto.supervisor.PortsStatus.prototype.toObject = function(opt_includeInstance)
|
|
|
2113
2353
|
proto.supervisor.PortsStatus.toObject = function(includeInstance, msg) {
|
|
2114
2354
|
var f, obj = {
|
|
2115
2355
|
localPort: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
2116
|
-
globalPort: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
2117
2356
|
served: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
2118
2357
|
exposed: (f = msg.getExposed()) && proto.supervisor.ExposedPortInfo.toObject(includeInstance, f),
|
|
2119
|
-
|
|
2358
|
+
autoExposure: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
2359
|
+
tunneled: (f = msg.getTunneled()) && proto.supervisor.TunneledPortInfo.toObject(includeInstance, f),
|
|
2360
|
+
description: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
2120
2361
|
};
|
|
2121
2362
|
|
|
2122
2363
|
if (includeInstance) {
|
|
@@ -2157,10 +2398,6 @@ proto.supervisor.PortsStatus.deserializeBinaryFromReader = function(msg, reader)
|
|
|
2157
2398
|
var value = /** @type {number} */ (reader.readUint32());
|
|
2158
2399
|
msg.setLocalPort(value);
|
|
2159
2400
|
break;
|
|
2160
|
-
case 2:
|
|
2161
|
-
var value = /** @type {number} */ (reader.readUint32());
|
|
2162
|
-
msg.setGlobalPort(value);
|
|
2163
|
-
break;
|
|
2164
2401
|
case 4:
|
|
2165
2402
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
2166
2403
|
msg.setServed(value);
|
|
@@ -2170,11 +2407,19 @@ proto.supervisor.PortsStatus.deserializeBinaryFromReader = function(msg, reader)
|
|
|
2170
2407
|
reader.readMessage(value,proto.supervisor.ExposedPortInfo.deserializeBinaryFromReader);
|
|
2171
2408
|
msg.setExposed(value);
|
|
2172
2409
|
break;
|
|
2410
|
+
case 7:
|
|
2411
|
+
var value = /** @type {!proto.supervisor.PortAutoExposure} */ (reader.readEnum());
|
|
2412
|
+
msg.setAutoExposure(value);
|
|
2413
|
+
break;
|
|
2173
2414
|
case 6:
|
|
2174
2415
|
var value = new proto.supervisor.TunneledPortInfo;
|
|
2175
2416
|
reader.readMessage(value,proto.supervisor.TunneledPortInfo.deserializeBinaryFromReader);
|
|
2176
2417
|
msg.setTunneled(value);
|
|
2177
2418
|
break;
|
|
2419
|
+
case 8:
|
|
2420
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2421
|
+
msg.setDescription(value);
|
|
2422
|
+
break;
|
|
2178
2423
|
default:
|
|
2179
2424
|
reader.skipField();
|
|
2180
2425
|
break;
|
|
@@ -2211,13 +2456,6 @@ proto.supervisor.PortsStatus.serializeBinaryToWriter = function(message, writer)
|
|
|
2211
2456
|
f
|
|
2212
2457
|
);
|
|
2213
2458
|
}
|
|
2214
|
-
f = message.getGlobalPort();
|
|
2215
|
-
if (f !== 0) {
|
|
2216
|
-
writer.writeUint32(
|
|
2217
|
-
2,
|
|
2218
|
-
f
|
|
2219
|
-
);
|
|
2220
|
-
}
|
|
2221
2459
|
f = message.getServed();
|
|
2222
2460
|
if (f) {
|
|
2223
2461
|
writer.writeBool(
|
|
@@ -2233,6 +2471,13 @@ proto.supervisor.PortsStatus.serializeBinaryToWriter = function(message, writer)
|
|
|
2233
2471
|
proto.supervisor.ExposedPortInfo.serializeBinaryToWriter
|
|
2234
2472
|
);
|
|
2235
2473
|
}
|
|
2474
|
+
f = message.getAutoExposure();
|
|
2475
|
+
if (f !== 0.0) {
|
|
2476
|
+
writer.writeEnum(
|
|
2477
|
+
7,
|
|
2478
|
+
f
|
|
2479
|
+
);
|
|
2480
|
+
}
|
|
2236
2481
|
f = message.getTunneled();
|
|
2237
2482
|
if (f != null) {
|
|
2238
2483
|
writer.writeMessage(
|
|
@@ -2241,6 +2486,13 @@ proto.supervisor.PortsStatus.serializeBinaryToWriter = function(message, writer)
|
|
|
2241
2486
|
proto.supervisor.TunneledPortInfo.serializeBinaryToWriter
|
|
2242
2487
|
);
|
|
2243
2488
|
}
|
|
2489
|
+
f = message.getDescription();
|
|
2490
|
+
if (f.length > 0) {
|
|
2491
|
+
writer.writeString(
|
|
2492
|
+
8,
|
|
2493
|
+
f
|
|
2494
|
+
);
|
|
2495
|
+
}
|
|
2244
2496
|
};
|
|
2245
2497
|
|
|
2246
2498
|
|
|
@@ -2262,24 +2514,6 @@ proto.supervisor.PortsStatus.prototype.setLocalPort = function(value) {
|
|
|
2262
2514
|
};
|
|
2263
2515
|
|
|
2264
2516
|
|
|
2265
|
-
/**
|
|
2266
|
-
* optional uint32 global_port = 2;
|
|
2267
|
-
* @return {number}
|
|
2268
|
-
*/
|
|
2269
|
-
proto.supervisor.PortsStatus.prototype.getGlobalPort = function() {
|
|
2270
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
2271
|
-
};
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
/**
|
|
2275
|
-
* @param {number} value
|
|
2276
|
-
* @return {!proto.supervisor.PortsStatus} returns this
|
|
2277
|
-
*/
|
|
2278
|
-
proto.supervisor.PortsStatus.prototype.setGlobalPort = function(value) {
|
|
2279
|
-
return jspb.Message.setProto3IntField(this, 2, value);
|
|
2280
|
-
};
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
2517
|
/**
|
|
2284
2518
|
* optional bool served = 4;
|
|
2285
2519
|
* @return {boolean}
|
|
@@ -2335,6 +2569,24 @@ proto.supervisor.PortsStatus.prototype.hasExposed = function() {
|
|
|
2335
2569
|
};
|
|
2336
2570
|
|
|
2337
2571
|
|
|
2572
|
+
/**
|
|
2573
|
+
* optional PortAutoExposure auto_exposure = 7;
|
|
2574
|
+
* @return {!proto.supervisor.PortAutoExposure}
|
|
2575
|
+
*/
|
|
2576
|
+
proto.supervisor.PortsStatus.prototype.getAutoExposure = function() {
|
|
2577
|
+
return /** @type {!proto.supervisor.PortAutoExposure} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
2578
|
+
};
|
|
2579
|
+
|
|
2580
|
+
|
|
2581
|
+
/**
|
|
2582
|
+
* @param {!proto.supervisor.PortAutoExposure} value
|
|
2583
|
+
* @return {!proto.supervisor.PortsStatus} returns this
|
|
2584
|
+
*/
|
|
2585
|
+
proto.supervisor.PortsStatus.prototype.setAutoExposure = function(value) {
|
|
2586
|
+
return jspb.Message.setProto3EnumField(this, 7, value);
|
|
2587
|
+
};
|
|
2588
|
+
|
|
2589
|
+
|
|
2338
2590
|
/**
|
|
2339
2591
|
* optional TunneledPortInfo tunneled = 6;
|
|
2340
2592
|
* @return {?proto.supervisor.TunneledPortInfo}
|
|
@@ -2372,6 +2624,24 @@ proto.supervisor.PortsStatus.prototype.hasTunneled = function() {
|
|
|
2372
2624
|
};
|
|
2373
2625
|
|
|
2374
2626
|
|
|
2627
|
+
/**
|
|
2628
|
+
* optional string description = 8;
|
|
2629
|
+
* @return {string}
|
|
2630
|
+
*/
|
|
2631
|
+
proto.supervisor.PortsStatus.prototype.getDescription = function() {
|
|
2632
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
2633
|
+
};
|
|
2634
|
+
|
|
2635
|
+
|
|
2636
|
+
/**
|
|
2637
|
+
* @param {string} value
|
|
2638
|
+
* @return {!proto.supervisor.PortsStatus} returns this
|
|
2639
|
+
*/
|
|
2640
|
+
proto.supervisor.PortsStatus.prototype.setDescription = function(value) {
|
|
2641
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
2642
|
+
};
|
|
2643
|
+
|
|
2644
|
+
|
|
2375
2645
|
|
|
2376
2646
|
|
|
2377
2647
|
|
|
@@ -3121,6 +3391,15 @@ proto.supervisor.OnPortExposedAction = {
|
|
|
3121
3391
|
NOTIFY_PRIVATE: 4
|
|
3122
3392
|
};
|
|
3123
3393
|
|
|
3394
|
+
/**
|
|
3395
|
+
* @enum {number}
|
|
3396
|
+
*/
|
|
3397
|
+
proto.supervisor.PortAutoExposure = {
|
|
3398
|
+
TRYING: 0,
|
|
3399
|
+
SUCCEEDED: 1,
|
|
3400
|
+
FAILED: 2
|
|
3401
|
+
};
|
|
3402
|
+
|
|
3124
3403
|
/**
|
|
3125
3404
|
* @enum {number}
|
|
3126
3405
|
*/
|
package/lib/terminal_pb.js
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
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));
|
|
17
23
|
|
|
18
24
|
goog.exportSymbol('proto.supervisor.GetTerminalRequest', null, global);
|
|
19
25
|
goog.exportSymbol('proto.supervisor.ListTerminalsRequest', null, global);
|
package/lib/token_pb.js
CHANGED
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
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));
|
|
17
23
|
|
|
18
24
|
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
19
25
|
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
package/package.json
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"dependencies": {
|
|
2
|
+
"dependencies": {
|
|
3
|
+
"@improbable-eng/grpc-web": "^0.14.0"
|
|
4
|
+
},
|
|
3
5
|
"devDependencies": {
|
|
4
|
-
"ts-protoc-gen": "^0.13.0"
|
|
6
|
+
"ts-protoc-gen": "^0.13.0",
|
|
7
|
+
"typescript": "~4.4.2"
|
|
5
8
|
},
|
|
6
9
|
"files": [
|
|
7
10
|
"lib",
|
|
@@ -12,5 +15,5 @@
|
|
|
12
15
|
"scripts": {
|
|
13
16
|
"build": "sh build.sh"
|
|
14
17
|
},
|
|
15
|
-
"version": "0.1.5-
|
|
18
|
+
"version": "0.1.5-port-description-3059-fork.0"
|
|
16
19
|
}
|
package/pkg-yarn.lock
CHANGED
|
@@ -4,5 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
"@gitpod/supervisor-api-grpcweb@0.1.5":
|
|
6
6
|
version "0.1.5"
|
|
7
|
-
resolved "file:///tmp/cache/
|
|
7
|
+
resolved "file:///tmp/cache/a72515d2d98e2ba2ff5242a2affcde11770d2956.tar.gz"
|
|
8
|
+
dependencies:
|
|
9
|
+
"@improbable-eng/grpc-web" "^0.14.0"
|
|
8
10
|
|