mirror of
https://github.com/coder/code-server.git
synced 2025-07-31 14:04:06 +08:00

* Allow setting paths for builtin exts and extra dirs The extra directories aren't used yet, just available from the environment service and to the shared process. * Utilize extra builtin extensions path * Utilize extra extensions directory * Fix cached mtimes for extra extension dirs * Simplify extension cache equality check
1180 lines
31 KiB
JavaScript
1180 lines
31 KiB
JavaScript
/**
|
|
* @fileoverview
|
|
* @enhanceable
|
|
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
* field starts with 'MSG_' and isn't a translatable message.
|
|
* @public
|
|
*/
|
|
// GENERATED CODE -- DO NOT EDIT!
|
|
|
|
var jspb = require('google-protobuf');
|
|
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.WorkingInit', null, global);
|
|
goog.exportSymbol('proto.WorkingInit.OperatingSystem', null, global);
|
|
/**
|
|
* 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.ClientMessage = function(opt_data) {
|
|
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ClientMessage.oneofGroups_);
|
|
};
|
|
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, proto.WorkingInit.repeatedFields_, 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
|
|
* other fields in the group are cleared. During deserialization, if multiple
|
|
* fields are encountered for a group, only the last value seen will be kept.
|
|
* @private {!Array<!Array<number>>}
|
|
* @const
|
|
*/
|
|
proto.ClientMessage.oneofGroups_ = [[20,21]];
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
proto.ClientMessage.MsgCase = {
|
|
MSG_NOT_SET: 0,
|
|
METHOD: 20,
|
|
PING: 21
|
|
};
|
|
|
|
/**
|
|
* @return {proto.ClientMessage.MsgCase}
|
|
*/
|
|
proto.ClientMessage.prototype.getMsgCase = function() {
|
|
return /** @type {proto.ClientMessage.MsgCase} */(jspb.Message.computeOneofCase(this, proto.ClientMessage.oneofGroups_[0]));
|
|
};
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.ClientMessage.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.ClientMessage.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.ClientMessage} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.ClientMessage.toObject = function(includeInstance, msg) {
|
|
var obj = {
|
|
method: (f = msg.getMethod()) && node_pb.Method.toObject(includeInstance, f),
|
|
ping: (f = msg.getPing()) && node_pb.Ping.toObject(includeInstance, f)
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.ClientMessage}
|
|
*/
|
|
proto.ClientMessage.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.ClientMessage;
|
|
return proto.ClientMessage.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.ClientMessage} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.ClientMessage}
|
|
*/
|
|
proto.ClientMessage.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 20:
|
|
var value = new node_pb.Method;
|
|
reader.readMessage(value,node_pb.Method.deserializeBinaryFromReader);
|
|
msg.setMethod(value);
|
|
break;
|
|
case 21:
|
|
var value = new node_pb.Ping;
|
|
reader.readMessage(value,node_pb.Ping.deserializeBinaryFromReader);
|
|
msg.setPing(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.ClientMessage.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.ClientMessage.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.ClientMessage} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.ClientMessage.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getMethod();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
20,
|
|
f,
|
|
node_pb.Method.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getPing();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
21,
|
|
f,
|
|
node_pb.Ping.serializeBinaryToWriter
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional Method method = 20;
|
|
* @return {?proto.Method}
|
|
*/
|
|
proto.ClientMessage.prototype.getMethod = function() {
|
|
return /** @type{?proto.Method} */ (
|
|
jspb.Message.getWrapperField(this, node_pb.Method, 20));
|
|
};
|
|
|
|
|
|
/** @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);
|
|
};
|
|
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.ClientMessage.prototype.hasMethod = function() {
|
|
return jspb.Message.getField(this, 20) != null;
|
|
};
|
|
|
|
|
|
/**
|
|
* optional Ping ping = 21;
|
|
* @return {?proto.Ping}
|
|
*/
|
|
proto.ClientMessage.prototype.getPing = function() {
|
|
return /** @type{?proto.Ping} */ (
|
|
jspb.Message.getWrapperField(this, node_pb.Ping, 21));
|
|
};
|
|
|
|
|
|
/** @param {?proto.Ping|undefined} value */
|
|
proto.ClientMessage.prototype.setPing = function(value) {
|
|
jspb.Message.setOneofWrapperField(this, 21, proto.ClientMessage.oneofGroups_[0], value);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the message field making it undefined.
|
|
*/
|
|
proto.ClientMessage.prototype.clearPing = function() {
|
|
this.setPing(undefined);
|
|
};
|
|
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.ClientMessage.prototype.hasPing = function() {
|
|
return jspb.Message.getField(this, 21) != null;
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* Oneof group definitions for this message. Each group defines the field
|
|
* numbers belonging to that group. When of these fields' value is set, all
|
|
* other fields in the group are cleared. During deserialization, if multiple
|
|
* fields are encountered for a group, only the last value seen will be kept.
|
|
* @private {!Array<!Array<number>>}
|
|
* @const
|
|
*/
|
|
proto.ServerMessage.oneofGroups_ = [[13,14,19,22,18,16,17]];
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
proto.ServerMessage.MsgCase = {
|
|
MSG_NOT_SET: 0,
|
|
FAIL: 13,
|
|
SUCCESS: 14,
|
|
EVENT: 19,
|
|
CALLBACK: 22,
|
|
PONG: 18,
|
|
INIT: 16,
|
|
SHARED_PROCESS_ACTIVE: 17
|
|
};
|
|
|
|
/**
|
|
* @return {proto.ServerMessage.MsgCase}
|
|
*/
|
|
proto.ServerMessage.prototype.getMsgCase = function() {
|
|
return /** @type {proto.ServerMessage.MsgCase} */(jspb.Message.computeOneofCase(this, proto.ServerMessage.oneofGroups_[0]));
|
|
};
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.ServerMessage.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.ServerMessage.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.ServerMessage} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.ServerMessage.toObject = function(includeInstance, msg) {
|
|
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.WorkingInit.toObject(includeInstance, f),
|
|
sharedProcessActive: (f = msg.getSharedProcessActive()) && vscode_pb.SharedProcessActive.toObject(includeInstance, f)
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.ServerMessage}
|
|
*/
|
|
proto.ServerMessage.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
var msg = new proto.ServerMessage;
|
|
return proto.ServerMessage.deserializeBinaryFromReader(msg, reader);
|
|
};
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format) from the
|
|
* given reader into the given message object.
|
|
* @param {!proto.ServerMessage} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.ServerMessage}
|
|
*/
|
|
proto.ServerMessage.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 13:
|
|
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.Method.Success;
|
|
reader.readMessage(value,node_pb.Method.Success.deserializeBinaryFromReader);
|
|
msg.setSuccess(value);
|
|
break;
|
|
case 19:
|
|
var value = new node_pb.Event;
|
|
reader.readMessage(value,node_pb.Event.deserializeBinaryFromReader);
|
|
msg.setEvent(value);
|
|
break;
|
|
case 22:
|
|
var value = new node_pb.Callback;
|
|
reader.readMessage(value,node_pb.Callback.deserializeBinaryFromReader);
|
|
msg.setCallback(value);
|
|
break;
|
|
case 18:
|
|
var value = new node_pb.Pong;
|
|
reader.readMessage(value,node_pb.Pong.deserializeBinaryFromReader);
|
|
msg.setPong(value);
|
|
break;
|
|
case 16:
|
|
var value = new proto.WorkingInit;
|
|
reader.readMessage(value,proto.WorkingInit.deserializeBinaryFromReader);
|
|
msg.setInit(value);
|
|
break;
|
|
case 17:
|
|
var value = new vscode_pb.SharedProcessActive;
|
|
reader.readMessage(value,vscode_pb.SharedProcessActive.deserializeBinaryFromReader);
|
|
msg.setSharedProcessActive(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.ServerMessage.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.ServerMessage.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.ServerMessage} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.ServerMessage.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getFail();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
13,
|
|
f,
|
|
node_pb.Method.Fail.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getSuccess();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
14,
|
|
f,
|
|
node_pb.Method.Success.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getEvent();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
19,
|
|
f,
|
|
node_pb.Event.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getCallback();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
22,
|
|
f,
|
|
node_pb.Callback.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getPong();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
18,
|
|
f,
|
|
node_pb.Pong.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getInit();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
16,
|
|
f,
|
|
proto.WorkingInit.serializeBinaryToWriter
|
|
);
|
|
}
|
|
f = message.getSharedProcessActive();
|
|
if (f != null) {
|
|
writer.writeMessage(
|
|
17,
|
|
f,
|
|
vscode_pb.SharedProcessActive.serializeBinaryToWriter
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* optional Method.Fail fail = 13;
|
|
* @return {?proto.Method.Fail}
|
|
*/
|
|
proto.ServerMessage.prototype.getFail = function() {
|
|
return /** @type{?proto.Method.Fail} */ (
|
|
jspb.Message.getWrapperField(this, node_pb.Method.Fail, 13));
|
|
};
|
|
|
|
|
|
/** @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);
|
|
};
|
|
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.ServerMessage.prototype.hasFail = function() {
|
|
return jspb.Message.getField(this, 13) != null;
|
|
};
|
|
|
|
|
|
/**
|
|
* optional Method.Success success = 14;
|
|
* @return {?proto.Method.Success}
|
|
*/
|
|
proto.ServerMessage.prototype.getSuccess = function() {
|
|
return /** @type{?proto.Method.Success} */ (
|
|
jspb.Message.getWrapperField(this, node_pb.Method.Success, 14));
|
|
};
|
|
|
|
|
|
/** @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);
|
|
};
|
|
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.ServerMessage.prototype.hasSuccess = function() {
|
|
return jspb.Message.getField(this, 14) != null;
|
|
};
|
|
|
|
|
|
/**
|
|
* optional Event event = 19;
|
|
* @return {?proto.Event}
|
|
*/
|
|
proto.ServerMessage.prototype.getEvent = function() {
|
|
return /** @type{?proto.Event} */ (
|
|
jspb.Message.getWrapperField(this, node_pb.Event, 19));
|
|
};
|
|
|
|
|
|
/** @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);
|
|
};
|
|
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.ServerMessage.prototype.hasEvent = function() {
|
|
return jspb.Message.getField(this, 19) != null;
|
|
};
|
|
|
|
|
|
/**
|
|
* optional Callback callback = 22;
|
|
* @return {?proto.Callback}
|
|
*/
|
|
proto.ServerMessage.prototype.getCallback = function() {
|
|
return /** @type{?proto.Callback} */ (
|
|
jspb.Message.getWrapperField(this, node_pb.Callback, 22));
|
|
};
|
|
|
|
|
|
/** @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);
|
|
};
|
|
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.ServerMessage.prototype.hasCallback = function() {
|
|
return jspb.Message.getField(this, 22) != null;
|
|
};
|
|
|
|
|
|
/**
|
|
* optional Pong pong = 18;
|
|
* @return {?proto.Pong}
|
|
*/
|
|
proto.ServerMessage.prototype.getPong = function() {
|
|
return /** @type{?proto.Pong} */ (
|
|
jspb.Message.getWrapperField(this, node_pb.Pong, 18));
|
|
};
|
|
|
|
|
|
/** @param {?proto.Pong|undefined} value */
|
|
proto.ServerMessage.prototype.setPong = function(value) {
|
|
jspb.Message.setOneofWrapperField(this, 18, proto.ServerMessage.oneofGroups_[0], value);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the message field making it undefined.
|
|
*/
|
|
proto.ServerMessage.prototype.clearPong = function() {
|
|
this.setPong(undefined);
|
|
};
|
|
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.ServerMessage.prototype.hasPong = function() {
|
|
return jspb.Message.getField(this, 18) != null;
|
|
};
|
|
|
|
|
|
/**
|
|
* optional WorkingInit init = 16;
|
|
* @return {?proto.WorkingInit}
|
|
*/
|
|
proto.ServerMessage.prototype.getInit = function() {
|
|
return /** @type{?proto.WorkingInit} */ (
|
|
jspb.Message.getWrapperField(this, proto.WorkingInit, 16));
|
|
};
|
|
|
|
|
|
/** @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);
|
|
};
|
|
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.ServerMessage.prototype.hasInit = function() {
|
|
return jspb.Message.getField(this, 16) != null;
|
|
};
|
|
|
|
|
|
/**
|
|
* optional SharedProcessActive shared_process_active = 17;
|
|
* @return {?proto.SharedProcessActive}
|
|
*/
|
|
proto.ServerMessage.prototype.getSharedProcessActive = function() {
|
|
return /** @type{?proto.SharedProcessActive} */ (
|
|
jspb.Message.getWrapperField(this, vscode_pb.SharedProcessActive, 17));
|
|
};
|
|
|
|
|
|
/** @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);
|
|
};
|
|
|
|
|
|
/**
|
|
* Returns whether this field is set.
|
|
* @return {boolean}
|
|
*/
|
|
proto.ServerMessage.prototype.hasSharedProcessActive = function() {
|
|
return jspb.Message.getField(this, 17) != null;
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* List of repeated fields within this message type.
|
|
* @private {!Array<number>}
|
|
* @const
|
|
*/
|
|
proto.WorkingInit.repeatedFields_ = [9,10];
|
|
|
|
|
|
|
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
/**
|
|
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
* For the list of reserved names please see:
|
|
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
* @return {!Object}
|
|
*/
|
|
proto.WorkingInit.prototype.toObject = function(opt_includeInstance) {
|
|
return proto.WorkingInit.toObject(opt_includeInstance, this);
|
|
};
|
|
|
|
|
|
/**
|
|
* Static version of the {@see toObject} method.
|
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
* instance for transitional soy proto support:
|
|
* http://goto/soy-param-migration
|
|
* @param {!proto.WorkingInit} msg The msg instance to transform.
|
|
* @return {!Object}
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
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, ""),
|
|
workingDirectory: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
operatingSystem: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
shell: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
builtinExtensionsDir: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
extensionsDirectory: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
extraExtensionDirectoriesList: jspb.Message.getRepeatedField(msg, 9),
|
|
extraBuiltinExtensionDirectoriesList: jspb.Message.getRepeatedField(msg, 10)
|
|
};
|
|
|
|
if (includeInstance) {
|
|
obj.$jspbMessageInstance = msg;
|
|
}
|
|
return obj;
|
|
};
|
|
}
|
|
|
|
|
|
/**
|
|
* Deserializes binary data (in protobuf wire format).
|
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
* @return {!proto.WorkingInit}
|
|
*/
|
|
proto.WorkingInit.deserializeBinary = function(bytes) {
|
|
var reader = new jspb.BinaryReader(bytes);
|
|
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.WorkingInit} msg The message object to deserialize into.
|
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
* @return {!proto.WorkingInit}
|
|
*/
|
|
proto.WorkingInit.deserializeBinaryFromReader = function(msg, reader) {
|
|
while (reader.nextField()) {
|
|
if (reader.isEndGroup()) {
|
|
break;
|
|
}
|
|
var field = reader.getFieldNumber();
|
|
switch (field) {
|
|
case 1:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setHomeDirectory(value);
|
|
break;
|
|
case 2:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setTmpDirectory(value);
|
|
break;
|
|
case 3:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setDataDirectory(value);
|
|
break;
|
|
case 4:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setWorkingDirectory(value);
|
|
break;
|
|
case 5:
|
|
var value = /** @type {!proto.WorkingInit.OperatingSystem} */ (reader.readEnum());
|
|
msg.setOperatingSystem(value);
|
|
break;
|
|
case 6:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setShell(value);
|
|
break;
|
|
case 7:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setBuiltinExtensionsDir(value);
|
|
break;
|
|
case 8:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.setExtensionsDirectory(value);
|
|
break;
|
|
case 9:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.addExtraExtensionDirectories(value);
|
|
break;
|
|
case 10:
|
|
var value = /** @type {string} */ (reader.readString());
|
|
msg.addExtraBuiltinExtensionDirectories(value);
|
|
break;
|
|
default:
|
|
reader.skipField();
|
|
break;
|
|
}
|
|
}
|
|
return msg;
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the message to binary data (in protobuf wire format).
|
|
* @return {!Uint8Array}
|
|
*/
|
|
proto.WorkingInit.prototype.serializeBinary = function() {
|
|
var writer = new jspb.BinaryWriter();
|
|
proto.WorkingInit.serializeBinaryToWriter(this, writer);
|
|
return writer.getResultBuffer();
|
|
};
|
|
|
|
|
|
/**
|
|
* Serializes the given message to binary data (in protobuf wire
|
|
* format), writing to the given BinaryWriter.
|
|
* @param {!proto.WorkingInit} message
|
|
* @param {!jspb.BinaryWriter} writer
|
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
*/
|
|
proto.WorkingInit.serializeBinaryToWriter = function(message, writer) {
|
|
var f = undefined;
|
|
f = message.getHomeDirectory();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
1,
|
|
f
|
|
);
|
|
}
|
|
f = message.getTmpDirectory();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
2,
|
|
f
|
|
);
|
|
}
|
|
f = message.getDataDirectory();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
3,
|
|
f
|
|
);
|
|
}
|
|
f = message.getWorkingDirectory();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
4,
|
|
f
|
|
);
|
|
}
|
|
f = message.getOperatingSystem();
|
|
if (f !== 0.0) {
|
|
writer.writeEnum(
|
|
5,
|
|
f
|
|
);
|
|
}
|
|
f = message.getShell();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
6,
|
|
f
|
|
);
|
|
}
|
|
f = message.getBuiltinExtensionsDir();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
7,
|
|
f
|
|
);
|
|
}
|
|
f = message.getExtensionsDirectory();
|
|
if (f.length > 0) {
|
|
writer.writeString(
|
|
8,
|
|
f
|
|
);
|
|
}
|
|
f = message.getExtraExtensionDirectoriesList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedString(
|
|
9,
|
|
f
|
|
);
|
|
}
|
|
f = message.getExtraBuiltinExtensionDirectoriesList();
|
|
if (f.length > 0) {
|
|
writer.writeRepeatedString(
|
|
10,
|
|
f
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/**
|
|
* @enum {number}
|
|
*/
|
|
proto.WorkingInit.OperatingSystem = {
|
|
WINDOWS: 0,
|
|
LINUX: 1,
|
|
MAC: 2
|
|
};
|
|
|
|
/**
|
|
* optional string home_directory = 1;
|
|
* @return {string}
|
|
*/
|
|
proto.WorkingInit.prototype.getHomeDirectory = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
};
|
|
|
|
|
|
/** @param {string} value */
|
|
proto.WorkingInit.prototype.setHomeDirectory = function(value) {
|
|
jspb.Message.setProto3StringField(this, 1, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string tmp_directory = 2;
|
|
* @return {string}
|
|
*/
|
|
proto.WorkingInit.prototype.getTmpDirectory = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
};
|
|
|
|
|
|
/** @param {string} value */
|
|
proto.WorkingInit.prototype.setTmpDirectory = function(value) {
|
|
jspb.Message.setProto3StringField(this, 2, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string data_directory = 3;
|
|
* @return {string}
|
|
*/
|
|
proto.WorkingInit.prototype.getDataDirectory = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
};
|
|
|
|
|
|
/** @param {string} value */
|
|
proto.WorkingInit.prototype.setDataDirectory = function(value) {
|
|
jspb.Message.setProto3StringField(this, 3, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string working_directory = 4;
|
|
* @return {string}
|
|
*/
|
|
proto.WorkingInit.prototype.getWorkingDirectory = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
};
|
|
|
|
|
|
/** @param {string} value */
|
|
proto.WorkingInit.prototype.setWorkingDirectory = function(value) {
|
|
jspb.Message.setProto3StringField(this, 4, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional OperatingSystem operating_system = 5;
|
|
* @return {!proto.WorkingInit.OperatingSystem}
|
|
*/
|
|
proto.WorkingInit.prototype.getOperatingSystem = function() {
|
|
return /** @type {!proto.WorkingInit.OperatingSystem} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
};
|
|
|
|
|
|
/** @param {!proto.WorkingInit.OperatingSystem} value */
|
|
proto.WorkingInit.prototype.setOperatingSystem = function(value) {
|
|
jspb.Message.setProto3EnumField(this, 5, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string shell = 6;
|
|
* @return {string}
|
|
*/
|
|
proto.WorkingInit.prototype.getShell = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
};
|
|
|
|
|
|
/** @param {string} value */
|
|
proto.WorkingInit.prototype.setShell = function(value) {
|
|
jspb.Message.setProto3StringField(this, 6, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string builtin_extensions_dir = 7;
|
|
* @return {string}
|
|
*/
|
|
proto.WorkingInit.prototype.getBuiltinExtensionsDir = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
};
|
|
|
|
|
|
/** @param {string} value */
|
|
proto.WorkingInit.prototype.setBuiltinExtensionsDir = function(value) {
|
|
jspb.Message.setProto3StringField(this, 7, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* optional string extensions_directory = 8;
|
|
* @return {string}
|
|
*/
|
|
proto.WorkingInit.prototype.getExtensionsDirectory = function() {
|
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
};
|
|
|
|
|
|
/** @param {string} value */
|
|
proto.WorkingInit.prototype.setExtensionsDirectory = function(value) {
|
|
jspb.Message.setProto3StringField(this, 8, value);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated string extra_extension_directories = 9;
|
|
* @return {!Array<string>}
|
|
*/
|
|
proto.WorkingInit.prototype.getExtraExtensionDirectoriesList = function() {
|
|
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 9));
|
|
};
|
|
|
|
|
|
/** @param {!Array<string>} value */
|
|
proto.WorkingInit.prototype.setExtraExtensionDirectoriesList = function(value) {
|
|
jspb.Message.setField(this, 9, value || []);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @param {number=} opt_index
|
|
*/
|
|
proto.WorkingInit.prototype.addExtraExtensionDirectories = function(value, opt_index) {
|
|
jspb.Message.addToRepeatedField(this, 9, value, opt_index);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the list making it empty but non-null.
|
|
*/
|
|
proto.WorkingInit.prototype.clearExtraExtensionDirectoriesList = function() {
|
|
this.setExtraExtensionDirectoriesList([]);
|
|
};
|
|
|
|
|
|
/**
|
|
* repeated string extra_builtin_extension_directories = 10;
|
|
* @return {!Array<string>}
|
|
*/
|
|
proto.WorkingInit.prototype.getExtraBuiltinExtensionDirectoriesList = function() {
|
|
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 10));
|
|
};
|
|
|
|
|
|
/** @param {!Array<string>} value */
|
|
proto.WorkingInit.prototype.setExtraBuiltinExtensionDirectoriesList = function(value) {
|
|
jspb.Message.setField(this, 10, value || []);
|
|
};
|
|
|
|
|
|
/**
|
|
* @param {string} value
|
|
* @param {number=} opt_index
|
|
*/
|
|
proto.WorkingInit.prototype.addExtraBuiltinExtensionDirectories = function(value, opt_index) {
|
|
jspb.Message.addToRepeatedField(this, 10, value, opt_index);
|
|
};
|
|
|
|
|
|
/**
|
|
* Clears the list making it empty but non-null.
|
|
*/
|
|
proto.WorkingInit.prototype.clearExtraBuiltinExtensionDirectoriesList = function() {
|
|
this.setExtraBuiltinExtensionDirectoriesList([]);
|
|
};
|
|
|
|
|
|
goog.object.extend(exports, proto);
|