Convert fully to protobuf (was partially JSON) (#402)
* Convert fully to protobuf (was partially JSON) * Handle all floating promises * Remove stringified proto from trace logging It wasn't proving to be very useful.
This commit is contained in:
@@ -12,12 +12,13 @@ var goog = jspb;
|
||||
var global = Function('return this')();
|
||||
|
||||
var node_pb = require('./node_pb.js');
|
||||
goog.object.extend(proto, node_pb);
|
||||
var vscode_pb = require('./vscode_pb.js');
|
||||
goog.object.extend(proto, vscode_pb);
|
||||
goog.exportSymbol('proto.ClientMessage', null, global);
|
||||
goog.exportSymbol('proto.ServerMessage', null, global);
|
||||
goog.exportSymbol('proto.WorkingInitMessage', null, global);
|
||||
goog.exportSymbol('proto.WorkingInitMessage.OperatingSystem', null, global);
|
||||
|
||||
goog.exportSymbol('proto.WorkingInit', null, global);
|
||||
goog.exportSymbol('proto.WorkingInit.OperatingSystem', null, global);
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
@@ -33,8 +34,55 @@ proto.ClientMessage = function(opt_data) {
|
||||
};
|
||||
goog.inherits(proto.ClientMessage, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.ClientMessage.displayName = 'proto.ClientMessage';
|
||||
}
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
* server response, or constructed directly in Javascript. The array is used
|
||||
* in place and becomes part of the constructed object. It is not cloned.
|
||||
* If no data is provided, the constructed object will be empty, but still
|
||||
* valid.
|
||||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.ServerMessage = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ServerMessage.oneofGroups_);
|
||||
};
|
||||
goog.inherits(proto.ServerMessage, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.ServerMessage.displayName = 'proto.ServerMessage';
|
||||
}
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
* server response, or constructed directly in Javascript. The array is used
|
||||
* in place and becomes part of the constructed object. It is not cloned.
|
||||
* If no data is provided, the constructed object will be empty, but still
|
||||
* valid.
|
||||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.WorkingInit = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.WorkingInit, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
/**
|
||||
* @public
|
||||
* @override
|
||||
*/
|
||||
proto.WorkingInit.displayName = 'proto.WorkingInit';
|
||||
}
|
||||
|
||||
/**
|
||||
* Oneof group definitions for this message. Each group defines the field
|
||||
* numbers belonging to that group. When of these fields' value is set, all
|
||||
@@ -89,8 +137,8 @@ proto.ClientMessage.prototype.toObject = function(opt_includeInstance) {
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.ClientMessage.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
method: (f = msg.getMethod()) && node_pb.MethodMessage.toObject(includeInstance, f),
|
||||
var obj = {
|
||||
method: (f = msg.getMethod()) && node_pb.Method.toObject(includeInstance, f),
|
||||
ping: (f = msg.getPing()) && node_pb.Ping.toObject(includeInstance, f)
|
||||
};
|
||||
|
||||
@@ -129,8 +177,8 @@ proto.ClientMessage.deserializeBinaryFromReader = function(msg, reader) {
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 20:
|
||||
var value = new node_pb.MethodMessage;
|
||||
reader.readMessage(value,node_pb.MethodMessage.deserializeBinaryFromReader);
|
||||
var value = new node_pb.Method;
|
||||
reader.readMessage(value,node_pb.Method.deserializeBinaryFromReader);
|
||||
msg.setMethod(value);
|
||||
break;
|
||||
case 21:
|
||||
@@ -172,7 +220,7 @@ proto.ClientMessage.serializeBinaryToWriter = function(message, writer) {
|
||||
writer.writeMessage(
|
||||
20,
|
||||
f,
|
||||
node_pb.MethodMessage.serializeBinaryToWriter
|
||||
node_pb.Method.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
f = message.getPing();
|
||||
@@ -187,21 +235,24 @@ proto.ClientMessage.serializeBinaryToWriter = function(message, writer) {
|
||||
|
||||
|
||||
/**
|
||||
* optional MethodMessage method = 20;
|
||||
* @return {?proto.MethodMessage}
|
||||
* optional Method method = 20;
|
||||
* @return {?proto.Method}
|
||||
*/
|
||||
proto.ClientMessage.prototype.getMethod = function() {
|
||||
return /** @type{?proto.MethodMessage} */ (
|
||||
jspb.Message.getWrapperField(this, node_pb.MethodMessage, 20));
|
||||
return /** @type{?proto.Method} */ (
|
||||
jspb.Message.getWrapperField(this, node_pb.Method, 20));
|
||||
};
|
||||
|
||||
|
||||
/** @param {?proto.MethodMessage|undefined} value */
|
||||
/** @param {?proto.Method|undefined} value */
|
||||
proto.ClientMessage.prototype.setMethod = function(value) {
|
||||
jspb.Message.setOneofWrapperField(this, 20, proto.ClientMessage.oneofGroups_[0], value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the message field making it undefined.
|
||||
*/
|
||||
proto.ClientMessage.prototype.clearMethod = function() {
|
||||
this.setMethod(undefined);
|
||||
};
|
||||
@@ -209,7 +260,7 @@ proto.ClientMessage.prototype.clearMethod = function() {
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.ClientMessage.prototype.hasMethod = function() {
|
||||
return jspb.Message.getField(this, 20) != null;
|
||||
@@ -232,6 +283,9 @@ proto.ClientMessage.prototype.setPing = function(value) {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the message field making it undefined.
|
||||
*/
|
||||
proto.ClientMessage.prototype.clearPing = function() {
|
||||
this.setPing(undefined);
|
||||
};
|
||||
@@ -239,7 +293,7 @@ proto.ClientMessage.prototype.clearPing = function() {
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.ClientMessage.prototype.hasPing = function() {
|
||||
return jspb.Message.getField(this, 21) != null;
|
||||
@@ -247,23 +301,6 @@ proto.ClientMessage.prototype.hasPing = function() {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
* server response, or constructed directly in Javascript. The array is used
|
||||
* in place and becomes part of the constructed object. It is not cloned.
|
||||
* If no data is provided, the constructed object will be empty, but still
|
||||
* valid.
|
||||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.ServerMessage = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ServerMessage.oneofGroups_);
|
||||
};
|
||||
goog.inherits(proto.ServerMessage, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
proto.ServerMessage.displayName = 'proto.ServerMessage';
|
||||
}
|
||||
/**
|
||||
* Oneof group definitions for this message. Each group defines the field
|
||||
* numbers belonging to that group. When of these fields' value is set, all
|
||||
@@ -323,14 +360,14 @@ proto.ServerMessage.prototype.toObject = function(opt_includeInstance) {
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.ServerMessage.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
fail: (f = msg.getFail()) && node_pb.FailMessage.toObject(includeInstance, f),
|
||||
success: (f = msg.getSuccess()) && node_pb.SuccessMessage.toObject(includeInstance, f),
|
||||
event: (f = msg.getEvent()) && node_pb.EventMessage.toObject(includeInstance, f),
|
||||
callback: (f = msg.getCallback()) && node_pb.CallbackMessage.toObject(includeInstance, f),
|
||||
var obj = {
|
||||
fail: (f = msg.getFail()) && node_pb.Method.Fail.toObject(includeInstance, f),
|
||||
success: (f = msg.getSuccess()) && node_pb.Method.Success.toObject(includeInstance, f),
|
||||
event: (f = msg.getEvent()) && node_pb.Event.toObject(includeInstance, f),
|
||||
callback: (f = msg.getCallback()) && node_pb.Callback.toObject(includeInstance, f),
|
||||
pong: (f = msg.getPong()) && node_pb.Pong.toObject(includeInstance, f),
|
||||
init: (f = msg.getInit()) && proto.WorkingInitMessage.toObject(includeInstance, f),
|
||||
sharedProcessActive: (f = msg.getSharedProcessActive()) && vscode_pb.SharedProcessActiveMessage.toObject(includeInstance, f)
|
||||
init: (f = msg.getInit()) && proto.WorkingInit.toObject(includeInstance, f),
|
||||
sharedProcessActive: (f = msg.getSharedProcessActive()) && vscode_pb.SharedProcessActive.toObject(includeInstance, f)
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
@@ -368,23 +405,23 @@ proto.ServerMessage.deserializeBinaryFromReader = function(msg, reader) {
|
||||
var field = reader.getFieldNumber();
|
||||
switch (field) {
|
||||
case 13:
|
||||
var value = new node_pb.FailMessage;
|
||||
reader.readMessage(value,node_pb.FailMessage.deserializeBinaryFromReader);
|
||||
var value = new node_pb.Method.Fail;
|
||||
reader.readMessage(value,node_pb.Method.Fail.deserializeBinaryFromReader);
|
||||
msg.setFail(value);
|
||||
break;
|
||||
case 14:
|
||||
var value = new node_pb.SuccessMessage;
|
||||
reader.readMessage(value,node_pb.SuccessMessage.deserializeBinaryFromReader);
|
||||
var value = new node_pb.Method.Success;
|
||||
reader.readMessage(value,node_pb.Method.Success.deserializeBinaryFromReader);
|
||||
msg.setSuccess(value);
|
||||
break;
|
||||
case 19:
|
||||
var value = new node_pb.EventMessage;
|
||||
reader.readMessage(value,node_pb.EventMessage.deserializeBinaryFromReader);
|
||||
var value = new node_pb.Event;
|
||||
reader.readMessage(value,node_pb.Event.deserializeBinaryFromReader);
|
||||
msg.setEvent(value);
|
||||
break;
|
||||
case 22:
|
||||
var value = new node_pb.CallbackMessage;
|
||||
reader.readMessage(value,node_pb.CallbackMessage.deserializeBinaryFromReader);
|
||||
var value = new node_pb.Callback;
|
||||
reader.readMessage(value,node_pb.Callback.deserializeBinaryFromReader);
|
||||
msg.setCallback(value);
|
||||
break;
|
||||
case 18:
|
||||
@@ -393,13 +430,13 @@ proto.ServerMessage.deserializeBinaryFromReader = function(msg, reader) {
|
||||
msg.setPong(value);
|
||||
break;
|
||||
case 16:
|
||||
var value = new proto.WorkingInitMessage;
|
||||
reader.readMessage(value,proto.WorkingInitMessage.deserializeBinaryFromReader);
|
||||
var value = new proto.WorkingInit;
|
||||
reader.readMessage(value,proto.WorkingInit.deserializeBinaryFromReader);
|
||||
msg.setInit(value);
|
||||
break;
|
||||
case 17:
|
||||
var value = new vscode_pb.SharedProcessActiveMessage;
|
||||
reader.readMessage(value,vscode_pb.SharedProcessActiveMessage.deserializeBinaryFromReader);
|
||||
var value = new vscode_pb.SharedProcessActive;
|
||||
reader.readMessage(value,vscode_pb.SharedProcessActive.deserializeBinaryFromReader);
|
||||
msg.setSharedProcessActive(value);
|
||||
break;
|
||||
default:
|
||||
@@ -436,7 +473,7 @@ proto.ServerMessage.serializeBinaryToWriter = function(message, writer) {
|
||||
writer.writeMessage(
|
||||
13,
|
||||
f,
|
||||
node_pb.FailMessage.serializeBinaryToWriter
|
||||
node_pb.Method.Fail.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
f = message.getSuccess();
|
||||
@@ -444,7 +481,7 @@ proto.ServerMessage.serializeBinaryToWriter = function(message, writer) {
|
||||
writer.writeMessage(
|
||||
14,
|
||||
f,
|
||||
node_pb.SuccessMessage.serializeBinaryToWriter
|
||||
node_pb.Method.Success.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
f = message.getEvent();
|
||||
@@ -452,7 +489,7 @@ proto.ServerMessage.serializeBinaryToWriter = function(message, writer) {
|
||||
writer.writeMessage(
|
||||
19,
|
||||
f,
|
||||
node_pb.EventMessage.serializeBinaryToWriter
|
||||
node_pb.Event.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
f = message.getCallback();
|
||||
@@ -460,7 +497,7 @@ proto.ServerMessage.serializeBinaryToWriter = function(message, writer) {
|
||||
writer.writeMessage(
|
||||
22,
|
||||
f,
|
||||
node_pb.CallbackMessage.serializeBinaryToWriter
|
||||
node_pb.Callback.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
f = message.getPong();
|
||||
@@ -476,7 +513,7 @@ proto.ServerMessage.serializeBinaryToWriter = function(message, writer) {
|
||||
writer.writeMessage(
|
||||
16,
|
||||
f,
|
||||
proto.WorkingInitMessage.serializeBinaryToWriter
|
||||
proto.WorkingInit.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
f = message.getSharedProcessActive();
|
||||
@@ -484,28 +521,31 @@ proto.ServerMessage.serializeBinaryToWriter = function(message, writer) {
|
||||
writer.writeMessage(
|
||||
17,
|
||||
f,
|
||||
vscode_pb.SharedProcessActiveMessage.serializeBinaryToWriter
|
||||
vscode_pb.SharedProcessActive.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional FailMessage fail = 13;
|
||||
* @return {?proto.FailMessage}
|
||||
* optional Method.Fail fail = 13;
|
||||
* @return {?proto.Method.Fail}
|
||||
*/
|
||||
proto.ServerMessage.prototype.getFail = function() {
|
||||
return /** @type{?proto.FailMessage} */ (
|
||||
jspb.Message.getWrapperField(this, node_pb.FailMessage, 13));
|
||||
return /** @type{?proto.Method.Fail} */ (
|
||||
jspb.Message.getWrapperField(this, node_pb.Method.Fail, 13));
|
||||
};
|
||||
|
||||
|
||||
/** @param {?proto.FailMessage|undefined} value */
|
||||
/** @param {?proto.Method.Fail|undefined} value */
|
||||
proto.ServerMessage.prototype.setFail = function(value) {
|
||||
jspb.Message.setOneofWrapperField(this, 13, proto.ServerMessage.oneofGroups_[0], value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the message field making it undefined.
|
||||
*/
|
||||
proto.ServerMessage.prototype.clearFail = function() {
|
||||
this.setFail(undefined);
|
||||
};
|
||||
@@ -513,7 +553,7 @@ proto.ServerMessage.prototype.clearFail = function() {
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.ServerMessage.prototype.hasFail = function() {
|
||||
return jspb.Message.getField(this, 13) != null;
|
||||
@@ -521,21 +561,24 @@ proto.ServerMessage.prototype.hasFail = function() {
|
||||
|
||||
|
||||
/**
|
||||
* optional SuccessMessage success = 14;
|
||||
* @return {?proto.SuccessMessage}
|
||||
* optional Method.Success success = 14;
|
||||
* @return {?proto.Method.Success}
|
||||
*/
|
||||
proto.ServerMessage.prototype.getSuccess = function() {
|
||||
return /** @type{?proto.SuccessMessage} */ (
|
||||
jspb.Message.getWrapperField(this, node_pb.SuccessMessage, 14));
|
||||
return /** @type{?proto.Method.Success} */ (
|
||||
jspb.Message.getWrapperField(this, node_pb.Method.Success, 14));
|
||||
};
|
||||
|
||||
|
||||
/** @param {?proto.SuccessMessage|undefined} value */
|
||||
/** @param {?proto.Method.Success|undefined} value */
|
||||
proto.ServerMessage.prototype.setSuccess = function(value) {
|
||||
jspb.Message.setOneofWrapperField(this, 14, proto.ServerMessage.oneofGroups_[0], value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the message field making it undefined.
|
||||
*/
|
||||
proto.ServerMessage.prototype.clearSuccess = function() {
|
||||
this.setSuccess(undefined);
|
||||
};
|
||||
@@ -543,7 +586,7 @@ proto.ServerMessage.prototype.clearSuccess = function() {
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.ServerMessage.prototype.hasSuccess = function() {
|
||||
return jspb.Message.getField(this, 14) != null;
|
||||
@@ -551,21 +594,24 @@ proto.ServerMessage.prototype.hasSuccess = function() {
|
||||
|
||||
|
||||
/**
|
||||
* optional EventMessage event = 19;
|
||||
* @return {?proto.EventMessage}
|
||||
* optional Event event = 19;
|
||||
* @return {?proto.Event}
|
||||
*/
|
||||
proto.ServerMessage.prototype.getEvent = function() {
|
||||
return /** @type{?proto.EventMessage} */ (
|
||||
jspb.Message.getWrapperField(this, node_pb.EventMessage, 19));
|
||||
return /** @type{?proto.Event} */ (
|
||||
jspb.Message.getWrapperField(this, node_pb.Event, 19));
|
||||
};
|
||||
|
||||
|
||||
/** @param {?proto.EventMessage|undefined} value */
|
||||
/** @param {?proto.Event|undefined} value */
|
||||
proto.ServerMessage.prototype.setEvent = function(value) {
|
||||
jspb.Message.setOneofWrapperField(this, 19, proto.ServerMessage.oneofGroups_[0], value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the message field making it undefined.
|
||||
*/
|
||||
proto.ServerMessage.prototype.clearEvent = function() {
|
||||
this.setEvent(undefined);
|
||||
};
|
||||
@@ -573,7 +619,7 @@ proto.ServerMessage.prototype.clearEvent = function() {
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.ServerMessage.prototype.hasEvent = function() {
|
||||
return jspb.Message.getField(this, 19) != null;
|
||||
@@ -581,21 +627,24 @@ proto.ServerMessage.prototype.hasEvent = function() {
|
||||
|
||||
|
||||
/**
|
||||
* optional CallbackMessage callback = 22;
|
||||
* @return {?proto.CallbackMessage}
|
||||
* optional Callback callback = 22;
|
||||
* @return {?proto.Callback}
|
||||
*/
|
||||
proto.ServerMessage.prototype.getCallback = function() {
|
||||
return /** @type{?proto.CallbackMessage} */ (
|
||||
jspb.Message.getWrapperField(this, node_pb.CallbackMessage, 22));
|
||||
return /** @type{?proto.Callback} */ (
|
||||
jspb.Message.getWrapperField(this, node_pb.Callback, 22));
|
||||
};
|
||||
|
||||
|
||||
/** @param {?proto.CallbackMessage|undefined} value */
|
||||
/** @param {?proto.Callback|undefined} value */
|
||||
proto.ServerMessage.prototype.setCallback = function(value) {
|
||||
jspb.Message.setOneofWrapperField(this, 22, proto.ServerMessage.oneofGroups_[0], value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the message field making it undefined.
|
||||
*/
|
||||
proto.ServerMessage.prototype.clearCallback = function() {
|
||||
this.setCallback(undefined);
|
||||
};
|
||||
@@ -603,7 +652,7 @@ proto.ServerMessage.prototype.clearCallback = function() {
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.ServerMessage.prototype.hasCallback = function() {
|
||||
return jspb.Message.getField(this, 22) != null;
|
||||
@@ -626,6 +675,9 @@ proto.ServerMessage.prototype.setPong = function(value) {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the message field making it undefined.
|
||||
*/
|
||||
proto.ServerMessage.prototype.clearPong = function() {
|
||||
this.setPong(undefined);
|
||||
};
|
||||
@@ -633,7 +685,7 @@ proto.ServerMessage.prototype.clearPong = function() {
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.ServerMessage.prototype.hasPong = function() {
|
||||
return jspb.Message.getField(this, 18) != null;
|
||||
@@ -641,21 +693,24 @@ proto.ServerMessage.prototype.hasPong = function() {
|
||||
|
||||
|
||||
/**
|
||||
* optional WorkingInitMessage init = 16;
|
||||
* @return {?proto.WorkingInitMessage}
|
||||
* optional WorkingInit init = 16;
|
||||
* @return {?proto.WorkingInit}
|
||||
*/
|
||||
proto.ServerMessage.prototype.getInit = function() {
|
||||
return /** @type{?proto.WorkingInitMessage} */ (
|
||||
jspb.Message.getWrapperField(this, proto.WorkingInitMessage, 16));
|
||||
return /** @type{?proto.WorkingInit} */ (
|
||||
jspb.Message.getWrapperField(this, proto.WorkingInit, 16));
|
||||
};
|
||||
|
||||
|
||||
/** @param {?proto.WorkingInitMessage|undefined} value */
|
||||
/** @param {?proto.WorkingInit|undefined} value */
|
||||
proto.ServerMessage.prototype.setInit = function(value) {
|
||||
jspb.Message.setOneofWrapperField(this, 16, proto.ServerMessage.oneofGroups_[0], value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the message field making it undefined.
|
||||
*/
|
||||
proto.ServerMessage.prototype.clearInit = function() {
|
||||
this.setInit(undefined);
|
||||
};
|
||||
@@ -663,7 +718,7 @@ proto.ServerMessage.prototype.clearInit = function() {
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.ServerMessage.prototype.hasInit = function() {
|
||||
return jspb.Message.getField(this, 16) != null;
|
||||
@@ -671,21 +726,24 @@ proto.ServerMessage.prototype.hasInit = function() {
|
||||
|
||||
|
||||
/**
|
||||
* optional SharedProcessActiveMessage shared_process_active = 17;
|
||||
* @return {?proto.SharedProcessActiveMessage}
|
||||
* optional SharedProcessActive shared_process_active = 17;
|
||||
* @return {?proto.SharedProcessActive}
|
||||
*/
|
||||
proto.ServerMessage.prototype.getSharedProcessActive = function() {
|
||||
return /** @type{?proto.SharedProcessActiveMessage} */ (
|
||||
jspb.Message.getWrapperField(this, vscode_pb.SharedProcessActiveMessage, 17));
|
||||
return /** @type{?proto.SharedProcessActive} */ (
|
||||
jspb.Message.getWrapperField(this, vscode_pb.SharedProcessActive, 17));
|
||||
};
|
||||
|
||||
|
||||
/** @param {?proto.SharedProcessActiveMessage|undefined} value */
|
||||
/** @param {?proto.SharedProcessActive|undefined} value */
|
||||
proto.ServerMessage.prototype.setSharedProcessActive = function(value) {
|
||||
jspb.Message.setOneofWrapperField(this, 17, proto.ServerMessage.oneofGroups_[0], value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears the message field making it undefined.
|
||||
*/
|
||||
proto.ServerMessage.prototype.clearSharedProcessActive = function() {
|
||||
this.setSharedProcessActive(undefined);
|
||||
};
|
||||
@@ -693,7 +751,7 @@ proto.ServerMessage.prototype.clearSharedProcessActive = function() {
|
||||
|
||||
/**
|
||||
* Returns whether this field is set.
|
||||
* @return {!boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
proto.ServerMessage.prototype.hasSharedProcessActive = function() {
|
||||
return jspb.Message.getField(this, 17) != null;
|
||||
@@ -701,23 +759,6 @@ proto.ServerMessage.prototype.hasSharedProcessActive = function() {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Generated by JsPbCodeGenerator.
|
||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||
* server response, or constructed directly in Javascript. The array is used
|
||||
* in place and becomes part of the constructed object. It is not cloned.
|
||||
* If no data is provided, the constructed object will be empty, but still
|
||||
* valid.
|
||||
* @extends {jspb.Message}
|
||||
* @constructor
|
||||
*/
|
||||
proto.WorkingInitMessage = function(opt_data) {
|
||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||
};
|
||||
goog.inherits(proto.WorkingInitMessage, jspb.Message);
|
||||
if (goog.DEBUG && !COMPILED) {
|
||||
proto.WorkingInitMessage.displayName = 'proto.WorkingInitMessage';
|
||||
}
|
||||
|
||||
|
||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
@@ -731,8 +772,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||
* for transitional soy proto support: http://goto/soy-param-migration
|
||||
* @return {!Object}
|
||||
*/
|
||||
proto.WorkingInitMessage.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.WorkingInitMessage.toObject(opt_includeInstance, this);
|
||||
proto.WorkingInit.prototype.toObject = function(opt_includeInstance) {
|
||||
return proto.WorkingInit.toObject(opt_includeInstance, this);
|
||||
};
|
||||
|
||||
|
||||
@@ -741,12 +782,12 @@ proto.WorkingInitMessage.prototype.toObject = function(opt_includeInstance) {
|
||||
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
||||
* instance for transitional soy proto support:
|
||||
* http://goto/soy-param-migration
|
||||
* @param {!proto.WorkingInitMessage} msg The msg instance to transform.
|
||||
* @param {!proto.WorkingInit} msg The msg instance to transform.
|
||||
* @return {!Object}
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.WorkingInitMessage.toObject = function(includeInstance, msg) {
|
||||
var f, obj = {
|
||||
proto.WorkingInit.toObject = function(includeInstance, msg) {
|
||||
var obj = {
|
||||
homeDirectory: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||
tmpDirectory: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||
dataDirectory: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
||||
@@ -767,23 +808,23 @@ proto.WorkingInitMessage.toObject = function(includeInstance, msg) {
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format).
|
||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||
* @return {!proto.WorkingInitMessage}
|
||||
* @return {!proto.WorkingInit}
|
||||
*/
|
||||
proto.WorkingInitMessage.deserializeBinary = function(bytes) {
|
||||
proto.WorkingInit.deserializeBinary = function(bytes) {
|
||||
var reader = new jspb.BinaryReader(bytes);
|
||||
var msg = new proto.WorkingInitMessage;
|
||||
return proto.WorkingInitMessage.deserializeBinaryFromReader(msg, reader);
|
||||
var msg = new proto.WorkingInit;
|
||||
return proto.WorkingInit.deserializeBinaryFromReader(msg, reader);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Deserializes binary data (in protobuf wire format) from the
|
||||
* given reader into the given message object.
|
||||
* @param {!proto.WorkingInitMessage} msg The message object to deserialize into.
|
||||
* @param {!proto.WorkingInit} msg The message object to deserialize into.
|
||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||
* @return {!proto.WorkingInitMessage}
|
||||
* @return {!proto.WorkingInit}
|
||||
*/
|
||||
proto.WorkingInitMessage.deserializeBinaryFromReader = function(msg, reader) {
|
||||
proto.WorkingInit.deserializeBinaryFromReader = function(msg, reader) {
|
||||
while (reader.nextField()) {
|
||||
if (reader.isEndGroup()) {
|
||||
break;
|
||||
@@ -807,7 +848,7 @@ proto.WorkingInitMessage.deserializeBinaryFromReader = function(msg, reader) {
|
||||
msg.setWorkingDirectory(value);
|
||||
break;
|
||||
case 5:
|
||||
var value = /** @type {!proto.WorkingInitMessage.OperatingSystem} */ (reader.readEnum());
|
||||
var value = /** @type {!proto.WorkingInit.OperatingSystem} */ (reader.readEnum());
|
||||
msg.setOperatingSystem(value);
|
||||
break;
|
||||
case 6:
|
||||
@@ -831,9 +872,9 @@ proto.WorkingInitMessage.deserializeBinaryFromReader = function(msg, reader) {
|
||||
* Serializes the message to binary data (in protobuf wire format).
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
proto.WorkingInitMessage.prototype.serializeBinary = function() {
|
||||
proto.WorkingInit.prototype.serializeBinary = function() {
|
||||
var writer = new jspb.BinaryWriter();
|
||||
proto.WorkingInitMessage.serializeBinaryToWriter(this, writer);
|
||||
proto.WorkingInit.serializeBinaryToWriter(this, writer);
|
||||
return writer.getResultBuffer();
|
||||
};
|
||||
|
||||
@@ -841,11 +882,11 @@ proto.WorkingInitMessage.prototype.serializeBinary = function() {
|
||||
/**
|
||||
* Serializes the given message to binary data (in protobuf wire
|
||||
* format), writing to the given BinaryWriter.
|
||||
* @param {!proto.WorkingInitMessage} message
|
||||
* @param {!proto.WorkingInit} message
|
||||
* @param {!jspb.BinaryWriter} writer
|
||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||
*/
|
||||
proto.WorkingInitMessage.serializeBinaryToWriter = function(message, writer) {
|
||||
proto.WorkingInit.serializeBinaryToWriter = function(message, writer) {
|
||||
var f = undefined;
|
||||
f = message.getHomeDirectory();
|
||||
if (f.length > 0) {
|
||||
@@ -902,7 +943,7 @@ proto.WorkingInitMessage.serializeBinaryToWriter = function(message, writer) {
|
||||
/**
|
||||
* @enum {number}
|
||||
*/
|
||||
proto.WorkingInitMessage.OperatingSystem = {
|
||||
proto.WorkingInit.OperatingSystem = {
|
||||
WINDOWS: 0,
|
||||
LINUX: 1,
|
||||
MAC: 2
|
||||
@@ -912,13 +953,13 @@ proto.WorkingInitMessage.OperatingSystem = {
|
||||
* optional string home_directory = 1;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.WorkingInitMessage.prototype.getHomeDirectory = function() {
|
||||
proto.WorkingInit.prototype.getHomeDirectory = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.WorkingInitMessage.prototype.setHomeDirectory = function(value) {
|
||||
proto.WorkingInit.prototype.setHomeDirectory = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 1, value);
|
||||
};
|
||||
|
||||
@@ -927,13 +968,13 @@ proto.WorkingInitMessage.prototype.setHomeDirectory = function(value) {
|
||||
* optional string tmp_directory = 2;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.WorkingInitMessage.prototype.getTmpDirectory = function() {
|
||||
proto.WorkingInit.prototype.getTmpDirectory = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.WorkingInitMessage.prototype.setTmpDirectory = function(value) {
|
||||
proto.WorkingInit.prototype.setTmpDirectory = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 2, value);
|
||||
};
|
||||
|
||||
@@ -942,13 +983,13 @@ proto.WorkingInitMessage.prototype.setTmpDirectory = function(value) {
|
||||
* optional string data_directory = 3;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.WorkingInitMessage.prototype.getDataDirectory = function() {
|
||||
proto.WorkingInit.prototype.getDataDirectory = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.WorkingInitMessage.prototype.setDataDirectory = function(value) {
|
||||
proto.WorkingInit.prototype.setDataDirectory = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 3, value);
|
||||
};
|
||||
|
||||
@@ -957,28 +998,28 @@ proto.WorkingInitMessage.prototype.setDataDirectory = function(value) {
|
||||
* optional string working_directory = 4;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.WorkingInitMessage.prototype.getWorkingDirectory = function() {
|
||||
proto.WorkingInit.prototype.getWorkingDirectory = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.WorkingInitMessage.prototype.setWorkingDirectory = function(value) {
|
||||
proto.WorkingInit.prototype.setWorkingDirectory = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 4, value);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional OperatingSystem operating_system = 5;
|
||||
* @return {!proto.WorkingInitMessage.OperatingSystem}
|
||||
* @return {!proto.WorkingInit.OperatingSystem}
|
||||
*/
|
||||
proto.WorkingInitMessage.prototype.getOperatingSystem = function() {
|
||||
return /** @type {!proto.WorkingInitMessage.OperatingSystem} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
||||
proto.WorkingInit.prototype.getOperatingSystem = function() {
|
||||
return /** @type {!proto.WorkingInit.OperatingSystem} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
||||
};
|
||||
|
||||
|
||||
/** @param {!proto.WorkingInitMessage.OperatingSystem} value */
|
||||
proto.WorkingInitMessage.prototype.setOperatingSystem = function(value) {
|
||||
/** @param {!proto.WorkingInit.OperatingSystem} value */
|
||||
proto.WorkingInit.prototype.setOperatingSystem = function(value) {
|
||||
jspb.Message.setProto3EnumField(this, 5, value);
|
||||
};
|
||||
|
||||
@@ -987,13 +1028,13 @@ proto.WorkingInitMessage.prototype.setOperatingSystem = function(value) {
|
||||
* optional string shell = 6;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.WorkingInitMessage.prototype.getShell = function() {
|
||||
proto.WorkingInit.prototype.getShell = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.WorkingInitMessage.prototype.setShell = function(value) {
|
||||
proto.WorkingInit.prototype.setShell = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 6, value);
|
||||
};
|
||||
|
||||
@@ -1002,13 +1043,13 @@ proto.WorkingInitMessage.prototype.setShell = function(value) {
|
||||
* optional string builtin_extensions_dir = 7;
|
||||
* @return {string}
|
||||
*/
|
||||
proto.WorkingInitMessage.prototype.getBuiltinExtensionsDir = function() {
|
||||
proto.WorkingInit.prototype.getBuiltinExtensionsDir = function() {
|
||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
||||
};
|
||||
|
||||
|
||||
/** @param {string} value */
|
||||
proto.WorkingInitMessage.prototype.setBuiltinExtensionsDir = function(value) {
|
||||
proto.WorkingInit.prototype.setBuiltinExtensionsDir = function(value) {
|
||||
jspb.Message.setProto3StringField(this, 7, value);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user