@@ -43,15 +43,16 @@ if (goog.DEBUG && !COMPILED) {
43
43
* @private {!Array<!Array<number>>}
44
44
* @const
45
45
*/
46
- proto . ClientMessage . oneofGroups_ = [ [ 11 , 12 ] ] ;
46
+ proto . ClientMessage . oneofGroups_ = [ [ 11 , 12 , 13 ] ] ;
47
47
48
48
/**
49
49
* @enum {number}
50
50
*/
51
51
proto . ClientMessage . MsgCase = {
52
52
MSG_NOT_SET : 0 ,
53
53
NEW_EVAL : 11 ,
54
- EVAL_EVENT : 12
54
+ EVAL_EVENT : 12 ,
55
+ PING : 13
55
56
} ;
56
57
57
58
/**
@@ -91,7 +92,8 @@ proto.ClientMessage.prototype.toObject = function(opt_includeInstance) {
91
92
proto . ClientMessage . toObject = function ( includeInstance , msg ) {
92
93
var f , obj = {
93
94
newEval : ( f = msg . getNewEval ( ) ) && node_pb . NewEvalMessage . toObject ( includeInstance , f ) ,
94
- evalEvent : ( f = msg . getEvalEvent ( ) ) && node_pb . EvalEventMessage . toObject ( includeInstance , f )
95
+ evalEvent : ( f = msg . getEvalEvent ( ) ) && node_pb . EvalEventMessage . toObject ( includeInstance , f ) ,
96
+ ping : ( f = msg . getPing ( ) ) && node_pb . Ping . toObject ( includeInstance , f )
95
97
} ;
96
98
97
99
if ( includeInstance ) {
@@ -138,6 +140,11 @@ proto.ClientMessage.deserializeBinaryFromReader = function(msg, reader) {
138
140
reader . readMessage ( value , node_pb . EvalEventMessage . deserializeBinaryFromReader ) ;
139
141
msg . setEvalEvent ( value ) ;
140
142
break ;
143
+ case 13 :
144
+ var value = new node_pb . Ping ;
145
+ reader . readMessage ( value , node_pb . Ping . deserializeBinaryFromReader ) ;
146
+ msg . setPing ( value ) ;
147
+ break ;
141
148
default :
142
149
reader . skipField ( ) ;
143
150
break ;
@@ -183,6 +190,14 @@ proto.ClientMessage.serializeBinaryToWriter = function(message, writer) {
183
190
node_pb . EvalEventMessage . serializeBinaryToWriter
184
191
) ;
185
192
}
193
+ f = message . getPing ( ) ;
194
+ if ( f != null ) {
195
+ writer . writeMessage (
196
+ 13 ,
197
+ f ,
198
+ node_pb . Ping . serializeBinaryToWriter
199
+ ) ;
200
+ }
186
201
} ;
187
202
188
203
@@ -246,6 +261,36 @@ proto.ClientMessage.prototype.hasEvalEvent = function() {
246
261
} ;
247
262
248
263
264
+ /**
265
+ * optional Ping ping = 13;
266
+ * @return {?proto.Ping }
267
+ */
268
+ proto . ClientMessage . prototype . getPing = function ( ) {
269
+ return /** @type {?proto.Ping } */ (
270
+ jspb . Message . getWrapperField ( this , node_pb . Ping , 13 ) ) ;
271
+ } ;
272
+
273
+
274
+ /** @param {?proto.Ping|undefined } value */
275
+ proto . ClientMessage . prototype . setPing = function ( value ) {
276
+ jspb . Message . setOneofWrapperField ( this , 13 , proto . ClientMessage . oneofGroups_ [ 0 ] , value ) ;
277
+ } ;
278
+
279
+
280
+ proto . ClientMessage . prototype . clearPing = function ( ) {
281
+ this . setPing ( undefined ) ;
282
+ } ;
283
+
284
+
285
+ /**
286
+ * Returns whether this field is set.
287
+ * @return {!boolean }
288
+ */
289
+ proto . ClientMessage . prototype . hasPing = function ( ) {
290
+ return jspb . Message . getField ( this , 13 ) != null ;
291
+ } ;
292
+
293
+
249
294
250
295
/**
251
296
* Generated by JsPbCodeGenerator.
@@ -272,7 +317,7 @@ if (goog.DEBUG && !COMPILED) {
272
317
* @private {!Array<!Array<number>>}
273
318
* @const
274
319
*/
275
- proto . ServerMessage . oneofGroups_ = [ [ 13 , 14 , 15 , 16 , 17 ] ] ;
320
+ proto . ServerMessage . oneofGroups_ = [ [ 13 , 14 , 15 , 16 , 17 , 18 ] ] ;
276
321
277
322
/**
278
323
* @enum {number}
@@ -283,7 +328,8 @@ proto.ServerMessage.MsgCase = {
283
328
EVAL_DONE : 14 ,
284
329
EVAL_EVENT : 15 ,
285
330
INIT : 16 ,
286
- SHARED_PROCESS_ACTIVE : 17
331
+ SHARED_PROCESS_ACTIVE : 17 ,
332
+ PONG : 18
287
333
} ;
288
334
289
335
/**
@@ -326,7 +372,8 @@ proto.ServerMessage.toObject = function(includeInstance, msg) {
326
372
evalDone : ( f = msg . getEvalDone ( ) ) && node_pb . EvalDoneMessage . toObject ( includeInstance , f ) ,
327
373
evalEvent : ( f = msg . getEvalEvent ( ) ) && node_pb . EvalEventMessage . toObject ( includeInstance , f ) ,
328
374
init : ( f = msg . getInit ( ) ) && proto . WorkingInitMessage . toObject ( includeInstance , f ) ,
329
- sharedProcessActive : ( f = msg . getSharedProcessActive ( ) ) && vscode_pb . SharedProcessActiveMessage . toObject ( includeInstance , f )
375
+ sharedProcessActive : ( f = msg . getSharedProcessActive ( ) ) && vscode_pb . SharedProcessActiveMessage . toObject ( includeInstance , f ) ,
376
+ pong : ( f = msg . getPong ( ) ) && node_pb . Pong . toObject ( includeInstance , f )
330
377
} ;
331
378
332
379
if ( includeInstance ) {
@@ -388,6 +435,11 @@ proto.ServerMessage.deserializeBinaryFromReader = function(msg, reader) {
388
435
reader . readMessage ( value , vscode_pb . SharedProcessActiveMessage . deserializeBinaryFromReader ) ;
389
436
msg . setSharedProcessActive ( value ) ;
390
437
break ;
438
+ case 18 :
439
+ var value = new node_pb . Pong ;
440
+ reader . readMessage ( value , node_pb . Pong . deserializeBinaryFromReader ) ;
441
+ msg . setPong ( value ) ;
442
+ break ;
391
443
default :
392
444
reader . skipField ( ) ;
393
445
break ;
@@ -457,6 +509,14 @@ proto.ServerMessage.serializeBinaryToWriter = function(message, writer) {
457
509
vscode_pb . SharedProcessActiveMessage . serializeBinaryToWriter
458
510
) ;
459
511
}
512
+ f = message . getPong ( ) ;
513
+ if ( f != null ) {
514
+ writer . writeMessage (
515
+ 18 ,
516
+ f ,
517
+ node_pb . Pong . serializeBinaryToWriter
518
+ ) ;
519
+ }
460
520
} ;
461
521
462
522
@@ -610,6 +670,36 @@ proto.ServerMessage.prototype.hasSharedProcessActive = function() {
610
670
} ;
611
671
612
672
673
+ /**
674
+ * optional Pong pong = 18;
675
+ * @return {?proto.Pong }
676
+ */
677
+ proto . ServerMessage . prototype . getPong = function ( ) {
678
+ return /** @type {?proto.Pong } */ (
679
+ jspb . Message . getWrapperField ( this , node_pb . Pong , 18 ) ) ;
680
+ } ;
681
+
682
+
683
+ /** @param {?proto.Pong|undefined } value */
684
+ proto . ServerMessage . prototype . setPong = function ( value ) {
685
+ jspb . Message . setOneofWrapperField ( this , 18 , proto . ServerMessage . oneofGroups_ [ 0 ] , value ) ;
686
+ } ;
687
+
688
+
689
+ proto . ServerMessage . prototype . clearPong = function ( ) {
690
+ this . setPong ( undefined ) ;
691
+ } ;
692
+
693
+
694
+ /**
695
+ * Returns whether this field is set.
696
+ * @return {!boolean }
697
+ */
698
+ proto . ServerMessage . prototype . hasPong = function ( ) {
699
+ return jspb . Message . getField ( this , 18 ) != null ;
700
+ } ;
701
+
702
+
613
703
614
704
/**
615
705
* Generated by JsPbCodeGenerator.
0 commit comments