@gitpod/supervisor-api-grpcweb 0.1.5-main.999 → 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.
@@ -31,11 +31,41 @@ type NotificationServiceRespond = {
31
31
  readonly responseType: typeof notification_pb.RespondResponse;
32
32
  };
33
33
 
34
+ type NotificationServiceSubscribeActive = {
35
+ readonly methodName: string;
36
+ readonly service: typeof NotificationService;
37
+ readonly requestStream: false;
38
+ readonly responseStream: true;
39
+ readonly requestType: typeof notification_pb.SubscribeActiveRequest;
40
+ readonly responseType: typeof notification_pb.SubscribeActiveResponse;
41
+ };
42
+
43
+ type NotificationServiceNotifyActive = {
44
+ readonly methodName: string;
45
+ readonly service: typeof NotificationService;
46
+ readonly requestStream: false;
47
+ readonly responseStream: false;
48
+ readonly requestType: typeof notification_pb.NotifyActiveRequest;
49
+ readonly responseType: typeof notification_pb.NotifyActiveResponse;
50
+ };
51
+
52
+ type NotificationServiceNotifyActiveRespond = {
53
+ readonly methodName: string;
54
+ readonly service: typeof NotificationService;
55
+ readonly requestStream: false;
56
+ readonly responseStream: false;
57
+ readonly requestType: typeof notification_pb.NotifyActiveRespondRequest;
58
+ readonly responseType: typeof notification_pb.NotifyActiveRespondResponse;
59
+ };
60
+
34
61
  export class NotificationService {
35
62
  static readonly serviceName: string;
36
63
  static readonly Notify: NotificationServiceNotify;
37
64
  static readonly Subscribe: NotificationServiceSubscribe;
38
65
  static readonly Respond: NotificationServiceRespond;
66
+ static readonly SubscribeActive: NotificationServiceSubscribeActive;
67
+ static readonly NotifyActive: NotificationServiceNotifyActive;
68
+ static readonly NotifyActiveRespond: NotificationServiceNotifyActiveRespond;
39
69
  }
40
70
 
41
71
  export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
@@ -89,5 +119,24 @@ export class NotificationServiceClient {
89
119
  requestMessage: notification_pb.RespondRequest,
90
120
  callback: (error: ServiceError|null, responseMessage: notification_pb.RespondResponse|null) => void
91
121
  ): UnaryResponse;
122
+ subscribeActive(requestMessage: notification_pb.SubscribeActiveRequest, metadata?: grpc.Metadata): ResponseStream<notification_pb.SubscribeActiveResponse>;
123
+ notifyActive(
124
+ requestMessage: notification_pb.NotifyActiveRequest,
125
+ metadata: grpc.Metadata,
126
+ callback: (error: ServiceError|null, responseMessage: notification_pb.NotifyActiveResponse|null) => void
127
+ ): UnaryResponse;
128
+ notifyActive(
129
+ requestMessage: notification_pb.NotifyActiveRequest,
130
+ callback: (error: ServiceError|null, responseMessage: notification_pb.NotifyActiveResponse|null) => void
131
+ ): UnaryResponse;
132
+ notifyActiveRespond(
133
+ requestMessage: notification_pb.NotifyActiveRespondRequest,
134
+ metadata: grpc.Metadata,
135
+ callback: (error: ServiceError|null, responseMessage: notification_pb.NotifyActiveRespondResponse|null) => void
136
+ ): UnaryResponse;
137
+ notifyActiveRespond(
138
+ requestMessage: notification_pb.NotifyActiveRespondRequest,
139
+ callback: (error: ServiceError|null, responseMessage: notification_pb.NotifyActiveRespondResponse|null) => void
140
+ ): UnaryResponse;
92
141
  }
93
142
 
@@ -37,6 +37,33 @@ NotificationService.Respond = {
37
37
  responseType: notification_pb.RespondResponse
38
38
  };
39
39
 
40
+ NotificationService.SubscribeActive = {
41
+ methodName: "SubscribeActive",
42
+ service: NotificationService,
43
+ requestStream: false,
44
+ responseStream: true,
45
+ requestType: notification_pb.SubscribeActiveRequest,
46
+ responseType: notification_pb.SubscribeActiveResponse
47
+ };
48
+
49
+ NotificationService.NotifyActive = {
50
+ methodName: "NotifyActive",
51
+ service: NotificationService,
52
+ requestStream: false,
53
+ responseStream: false,
54
+ requestType: notification_pb.NotifyActiveRequest,
55
+ responseType: notification_pb.NotifyActiveResponse
56
+ };
57
+
58
+ NotificationService.NotifyActiveRespond = {
59
+ methodName: "NotifyActiveRespond",
60
+ service: NotificationService,
61
+ requestStream: false,
62
+ responseStream: false,
63
+ requestType: notification_pb.NotifyActiveRespondRequest,
64
+ responseType: notification_pb.NotifyActiveRespondResponse
65
+ };
66
+
40
67
  exports.NotificationService = NotificationService;
41
68
 
42
69
  function NotificationServiceClient(serviceHost, options) {
@@ -145,5 +172,106 @@ NotificationServiceClient.prototype.respond = function respond(requestMessage, m
145
172
  };
146
173
  };
147
174
 
175
+ NotificationServiceClient.prototype.subscribeActive = function subscribeActive(requestMessage, metadata) {
176
+ var listeners = {
177
+ data: [],
178
+ end: [],
179
+ status: []
180
+ };
181
+ var client = grpc.invoke(NotificationService.SubscribeActive, {
182
+ request: requestMessage,
183
+ host: this.serviceHost,
184
+ metadata: metadata,
185
+ transport: this.options.transport,
186
+ debug: this.options.debug,
187
+ onMessage: function (responseMessage) {
188
+ listeners.data.forEach(function (handler) {
189
+ handler(responseMessage);
190
+ });
191
+ },
192
+ onEnd: function (status, statusMessage, trailers) {
193
+ listeners.status.forEach(function (handler) {
194
+ handler({ code: status, details: statusMessage, metadata: trailers });
195
+ });
196
+ listeners.end.forEach(function (handler) {
197
+ handler({ code: status, details: statusMessage, metadata: trailers });
198
+ });
199
+ listeners = null;
200
+ }
201
+ });
202
+ return {
203
+ on: function (type, handler) {
204
+ listeners[type].push(handler);
205
+ return this;
206
+ },
207
+ cancel: function () {
208
+ listeners = null;
209
+ client.close();
210
+ }
211
+ };
212
+ };
213
+
214
+ NotificationServiceClient.prototype.notifyActive = function notifyActive(requestMessage, metadata, callback) {
215
+ if (arguments.length === 2) {
216
+ callback = arguments[1];
217
+ }
218
+ var client = grpc.unary(NotificationService.NotifyActive, {
219
+ request: requestMessage,
220
+ host: this.serviceHost,
221
+ metadata: metadata,
222
+ transport: this.options.transport,
223
+ debug: this.options.debug,
224
+ onEnd: function (response) {
225
+ if (callback) {
226
+ if (response.status !== grpc.Code.OK) {
227
+ var err = new Error(response.statusMessage);
228
+ err.code = response.status;
229
+ err.metadata = response.trailers;
230
+ callback(err, null);
231
+ } else {
232
+ callback(null, response.message);
233
+ }
234
+ }
235
+ }
236
+ });
237
+ return {
238
+ cancel: function () {
239
+ callback = null;
240
+ client.close();
241
+ }
242
+ };
243
+ };
244
+
245
+ NotificationServiceClient.prototype.notifyActiveRespond = function notifyActiveRespond(requestMessage, metadata, callback) {
246
+ if (arguments.length === 2) {
247
+ callback = arguments[1];
248
+ }
249
+ var client = grpc.unary(NotificationService.NotifyActiveRespond, {
250
+ request: requestMessage,
251
+ host: this.serviceHost,
252
+ metadata: metadata,
253
+ transport: this.options.transport,
254
+ debug: this.options.debug,
255
+ onEnd: function (response) {
256
+ if (callback) {
257
+ if (response.status !== grpc.Code.OK) {
258
+ var err = new Error(response.statusMessage);
259
+ err.code = response.status;
260
+ err.metadata = response.trailers;
261
+ callback(err, null);
262
+ } else {
263
+ callback(null, response.message);
264
+ }
265
+ }
266
+ }
267
+ });
268
+ return {
269
+ cancel: function () {
270
+ callback = null;
271
+ client.close();
272
+ }
273
+ };
274
+ };
275
+
148
276
  exports.NotificationServiceClient = NotificationServiceClient;
149
277
 
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 = Function('return this')();
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
  */
@@ -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
 
@@ -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