Unverified Commit 31971f1b authored by Juon Kawakami's avatar Juon Kawakami 🥗
Browse files

init

parent 342fea6f
{"Entity":{"AMBULANCE_TEAM":4365,"FIRE_STATION":4360,"GAS_STATION":4359,"ROAD":4354,"AMBULANCE_CENTRE":4361,"POLICE_FORCE":4366,"FIRE_BRIGADE":4364,"HYDRANT":4358,"POLICE_OFFICE":4362,"BUILDING":4356,"REFUGE":4357,"BLOCKADE":4355,"WORLD":4353,"CIVILIAN":4363},"ComponentControlMSG":{"INTENSITIES":529,"Changes":534,"RequestID":513,"NumberOfIDs":520,"ViewerID":524,"TIMES":530,"Time":526,"Reason":522,"Name":516,"SimulatorID":518,"Entities":523,"RequestNumber":519,"AgentConfig":525,"Hearing":528,"SimulatorConfig":533,"Version":515,"Updates":527,"RequestedEntityTypes":517,"Commands":532,"NewEntityIDs":521,"AgentID":514,"ID":531},"Command":{"AK_RESCUE":4872,"AK_CLEAR_AREA":4874,"AK_SUBSCRIBE":4875,"AK_TELL":4870,"AK_LOAD":4867,"AK_UNLOAD":4868,"AK_CLEAR":4873,"AK_REST":4865,"AK_MOVE":4866,"AK_EXTINGUISH":4871,"AK_SAY":4869,"AK_SPEAK":4876},"ControlMSG":{"GK_CONNECT_OK":259,"KS_AFTERSHOCKS_INFO":268,"AK_ACKNOWLEDGE":275,"SK_CONNECT":261,"KS_CONNECT_ERROR":265,"VK_CONNECT":269,"KS_COMMANDS":267,"KS_UPDATE":266,"KV_CONNECT_OK":271,"KG_ACKNOWLEDGE":258,"SHUTDOWN":279,"KV_TIMESTEP":273,"KA_SENSE":278,"KS_CONNECT_OK":264,"VK_ACKNOWLEDGE":270,"KG_CONNECT":257,"GK_CONNECT_ERROR":260,"KA_CONNECT_ERROR":277,"SK_ACKNOWLEDGE":262,"KA_CONNECT_OK":276,"AK_CONNECT":274,"ENTITY_ID_RESPONSE":281,"ENTITY_ID_REQUEST":280,"KV_CONNECT_ERROR":272,"SK_UPDATE":263},"ComponentCommand":{"Water":5124,"Path":5125,"Target":5121,"Message":5126,"DestinationY":5123,"DestinationX":5122,"Channel":5127,"Channels":5128},"Property":{"START_TIME":4609,"LONGITUDE":4610,"HP":4632,"BUILDING_ATTRIBUTES":4619,"BUILDING_CODE":4623,"WIND_FORCE":4612,"BURIEDNESS":4634,"TRAVEL_DISTANCE":4635,"POSITION":4628,"BROKENNESS":4622,"TEMPERATURE":4637,"BUILDING_AREA_TOTAL":4625,"X":4614,"Y":4615,"EDGES":4627,"WAITING_LIST_SIZE":4643,"REFILL_CAPACITY":4642,"BUILDING_AREA_GROUND":4624,"WATER_QUANTITY":4636,"BLOCKADES":4616,"FLOORS":4618,"CAPACITY":4639,"APEXES":4626,"DIRECTION":4629,"OCCUPIED_BEDS":4641,"IMPORTANCE":4638,"BED_CAPACITY":4640,"POSITION_HISTORY":4630,"DAMAGE":4633,"FIERYNESS":4621,"REPAIR_COST":4617,"IGNITION":4620,"STAMINA":4631,"LATITUDE":4611,"WIND_DIRECTION":4613}}
\ No newline at end of file
// source: RCRSLogProto.proto
/**
* @fileoverview
* @enhanceable
* @suppress {missingRequire} reports error on implicit type usages.
* @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!
/* eslint-disable */
// @ts-nocheck
var jspb = require('google-protobuf');
var goog = jspb;
var global = Function('return this')();
var RCRSProto_pb = require('./RCRSProto_pb.js');
goog.object.extend(proto, RCRSProto_pb);
goog.exportSymbol('proto.CommandLogProto', null, global);
goog.exportSymbol('proto.ConfigLogProto', null, global);
goog.exportSymbol('proto.EndLogProto', null, global);
goog.exportSymbol('proto.InitialConditionsLogProto', null, global);
goog.exportSymbol('proto.LogProto', null, global);
goog.exportSymbol('proto.LogProto.LogCase', null, global);
goog.exportSymbol('proto.PerceptionLogProto', null, global);
goog.exportSymbol('proto.StartLogProto', null, global);
goog.exportSymbol('proto.UpdatesLogProto', 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.LogProto = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.LogProto.oneofGroups_);
};
goog.inherits(proto.LogProto, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.LogProto.displayName = 'proto.LogProto';
}
/**
* 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.StartLogProto = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.StartLogProto, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.StartLogProto.displayName = 'proto.StartLogProto';
}
/**
* 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.InitialConditionsLogProto = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.InitialConditionsLogProto.repeatedFields_, null);
};
goog.inherits(proto.InitialConditionsLogProto, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.InitialConditionsLogProto.displayName = 'proto.InitialConditionsLogProto';
}
/**
* 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.CommandLogProto = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.CommandLogProto.repeatedFields_, null);
};
goog.inherits(proto.CommandLogProto, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.CommandLogProto.displayName = 'proto.CommandLogProto';
}
/**
* 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.PerceptionLogProto = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.PerceptionLogProto.repeatedFields_, null);
};
goog.inherits(proto.PerceptionLogProto, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.PerceptionLogProto.displayName = 'proto.PerceptionLogProto';
}
/**
* 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.ConfigLogProto = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ConfigLogProto, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ConfigLogProto.displayName = 'proto.ConfigLogProto';
}
/**
* 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.UpdatesLogProto = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.UpdatesLogProto, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.UpdatesLogProto.displayName = 'proto.UpdatesLogProto';
}
/**
* 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.EndLogProto = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.EndLogProto, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.EndLogProto.displayName = 'proto.EndLogProto';
}
/**
* 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.LogProto.oneofGroups_ = [[1,2,3,4,5,6,7]];
/**
* @enum {number}
*/
proto.LogProto.LogCase = {
LOG_NOT_SET: 0,
START: 1,
INITIALCONDITION: 2,
COMMAND: 3,
PERCEPTION: 4,
CONFIG: 5,
UPDATE: 6,
END: 7
};
/**
* @return {proto.LogProto.LogCase}
*/
proto.LogProto.prototype.getLogCase = function() {
return /** @type {proto.LogProto.LogCase} */(jspb.Message.computeOneofCase(this, proto.LogProto.oneofGroups_[0]));
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.LogProto.prototype.toObject = function(opt_includeInstance) {
return proto.LogProto.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.LogProto} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.LogProto.toObject = function(includeInstance, msg) {
var f, obj = {
start: (f = msg.getStart()) && proto.StartLogProto.toObject(includeInstance, f),
initialcondition: (f = msg.getInitialcondition()) && proto.InitialConditionsLogProto.toObject(includeInstance, f),
command: (f = msg.getCommand()) && proto.CommandLogProto.toObject(includeInstance, f),
perception: (f = msg.getPerception()) && proto.PerceptionLogProto.toObject(includeInstance, f),
config: (f = msg.getConfig()) && proto.ConfigLogProto.toObject(includeInstance, f),
update: (f = msg.getUpdate()) && proto.UpdatesLogProto.toObject(includeInstance, f),
end: (f = msg.getEnd()) && proto.EndLogProto.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.LogProto}
*/
proto.LogProto.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.LogProto;
return proto.LogProto.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.LogProto} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.LogProto}
*/
proto.LogProto.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.StartLogProto;
reader.readMessage(value,proto.StartLogProto.deserializeBinaryFromReader);
msg.setStart(value);
break;
case 2:
var value = new proto.InitialConditionsLogProto;
reader.readMessage(value,proto.InitialConditionsLogProto.deserializeBinaryFromReader);
msg.setInitialcondition(value);
break;
case 3:
var value = new proto.CommandLogProto;
reader.readMessage(value,proto.CommandLogProto.deserializeBinaryFromReader);
msg.setCommand(value);
break;
case 4:
var value = new proto.PerceptionLogProto;
reader.readMessage(value,proto.PerceptionLogProto.deserializeBinaryFromReader);
msg.setPerception(value);
break;
case 5:
var value = new proto.ConfigLogProto;
reader.readMessage(value,proto.ConfigLogProto.deserializeBinaryFromReader);
msg.setConfig(value);
break;
case 6:
var value = new proto.UpdatesLogProto;
reader.readMessage(value,proto.UpdatesLogProto.deserializeBinaryFromReader);
msg.setUpdate(value);
break;
case 7:
var value = new proto.EndLogProto;
reader.readMessage(value,proto.EndLogProto.deserializeBinaryFromReader);
msg.setEnd(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.LogProto.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.LogProto.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.LogProto} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.LogProto.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getStart();
if (f != null) {
writer.writeMessage(
1,
f,
proto.StartLogProto.serializeBinaryToWriter
);
}
f = message.getInitialcondition();
if (f != null) {
writer.writeMessage(
2,
f,
proto.InitialConditionsLogProto.serializeBinaryToWriter
);
}
f = message.getCommand();
if (f != null) {
writer.writeMessage(
3,
f,
proto.CommandLogProto.serializeBinaryToWriter
);
}
f = message.getPerception();
if (f != null) {
writer.writeMessage(
4,
f,
proto.PerceptionLogProto.serializeBinaryToWriter
);
}
f = message.getConfig();
if (f != null) {
writer.writeMessage(
5,
f,
proto.ConfigLogProto.serializeBinaryToWriter
);
}
f = message.getUpdate();
if (f != null) {
writer.writeMessage(
6,
f,
proto.UpdatesLogProto.serializeBinaryToWriter
);
}
f = message.getEnd();
if (f != null) {
writer.writeMessage(
7,
f,
proto.EndLogProto.serializeBinaryToWriter
);
}
};
/**
* optional StartLogProto start = 1;
* @return {?proto.StartLogProto}
*/
proto.LogProto.prototype.getStart = function() {
return /** @type{?proto.StartLogProto} */ (
jspb.Message.getWrapperField(this, proto.StartLogProto, 1));
};
/**
* @param {?proto.StartLogProto|undefined} value
* @return {!proto.LogProto} returns this
*/
proto.LogProto.prototype.setStart = function(value) {
return jspb.Message.setOneofWrapperField(this, 1, proto.LogProto.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.LogProto} returns this
*/
proto.LogProto.prototype.clearStart = function() {
return this.setStart(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.LogProto.prototype.hasStart = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional InitialConditionsLogProto initialCondition = 2;
* @return {?proto.InitialConditionsLogProto}
*/
proto.LogProto.prototype.getInitialcondition = function() {
return /** @type{?proto.InitialConditionsLogProto} */ (
jspb.Message.getWrapperField(this, proto.InitialConditionsLogProto, 2));
};
/**
* @param {?proto.InitialConditionsLogProto|undefined} value
* @return {!proto.LogProto} returns this
*/
proto.LogProto.prototype.setInitialcondition = function(value) {
return jspb.Message.setOneofWrapperField(this, 2, proto.LogProto.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.LogProto} returns this
*/
proto.LogProto.prototype.clearInitialcondition = function() {
return this.setInitialcondition(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.LogProto.prototype.hasInitialcondition = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional CommandLogProto command = 3;
* @return {?proto.CommandLogProto}
*/
proto.LogProto.prototype.getCommand = function() {
return /** @type{?proto.CommandLogProto} */ (
jspb.Message.getWrapperField(this, proto.CommandLogProto, 3));
};
/**
* @param {?proto.CommandLogProto|undefined} value
* @return {!proto.LogProto} returns this
*/
proto.LogProto.prototype.setCommand = function(value) {
return jspb.Message.setOneofWrapperField(this, 3, proto.LogProto.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.LogProto} returns this
*/
proto.LogProto.prototype.clearCommand = function() {
return this.setCommand(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.LogProto.prototype.hasCommand = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional PerceptionLogProto perception = 4;
* @return {?proto.PerceptionLogProto}
*/
proto.LogProto.prototype.getPerception = function() {
return /** @type{?proto.PerceptionLogProto} */ (
jspb.Message.getWrapperField(this, proto.PerceptionLogProto, 4));
};
/**
* @param {?proto.PerceptionLogProto|undefined} value
* @return {!proto.LogProto} returns this
*/
proto.LogProto.prototype.setPerception = function(value) {
return jspb.Message.setOneofWrapperField(this, 4, proto.LogProto.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.LogProto} returns this
*/
proto.LogProto.prototype.clearPerception = function() {
return this.setPerception(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.LogProto.prototype.hasPerception = function() {
return jspb.Message.getField(this, 4) != null;
};
/**
* optional ConfigLogProto config = 5;
* @return {?proto.ConfigLogProto}
*/
proto.LogProto.prototype.getConfig = function() {
return /** @type{?proto.ConfigLogProto} */ (
jspb.Message.getWrapperField(this, proto.ConfigLogProto, 5));
};
/**
* @param {?proto.ConfigLogProto|undefined} value
* @return {!proto.LogProto} returns this
*/
proto.LogProto.prototype.setConfig = function(value) {
return jspb.Message.setOneofWrapperField(this, 5, proto.LogProto.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.LogProto} returns this
*/
proto.LogProto.prototype.clearConfig = function() {
return this.setConfig(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.LogProto.prototype.hasConfig = function() {
return jspb.Message.getField(this, 5) != null;
};
/**
* optional UpdatesLogProto update = 6;
* @return {?proto.UpdatesLogProto}
*/
proto.LogProto.prototype.getUpdate = function() {
return /** @type{?proto.UpdatesLogProto} */ (
jspb.Message.getWrapperField(this, proto.UpdatesLogProto, 6));
};
/**
* @param {?proto.UpdatesLogProto|undefined} value
* @return {!proto.LogProto} returns this
*/
proto.LogProto.prototype.setUpdate = function(value) {
return jspb.Message.setOneofWrapperField(this, 6, proto.LogProto.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.LogProto} returns this
*/
proto.LogProto.prototype.clearUpdate = function() {
return this.setUpdate(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.LogProto.prototype.hasUpdate = function() {
return jspb.Message.getField(this, 6) != null;
};
/**
* optional EndLogProto end = 7;
* @return {?proto.EndLogProto}
*/
proto.LogProto.prototype.getEnd = function() {
return /** @type{?proto.EndLogProto} */ (
jspb.Message.getWrapperField(this, proto.EndLogProto, 7));
};
/**
* @param {?proto.EndLogProto|undefined} value
* @return {!proto.LogProto} returns this
*/
proto.LogProto.prototype.setEnd = function(value) {
return jspb.Message.setOneofWrapperField(this, 7, proto.LogProto.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.LogProto} returns this
*/
proto.LogProto.prototype.clearEnd = function() {
return this.setEnd(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.LogProto.prototype.hasEnd = function() {
return jspb.Message.getField(this, 7) != null;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.StartLogProto.prototype.toObject = function(opt_includeInstance) {
return proto.StartLogProto.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.StartLogProto} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.StartLogProto.toObject = function(includeInstance, msg) {
var f, obj = {
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.StartLogProto}
*/
proto.StartLogProto.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.StartLogProto;
return proto.StartLogProto.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.StartLogProto} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.StartLogProto}
*/
proto.StartLogProto.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.StartLogProto.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.StartLogProto.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.StartLogProto} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.StartLogProto.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.InitialConditionsLogProto.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.InitialConditionsLogProto.prototype.toObject = function(opt_includeInstance) {
return proto.InitialConditionsLogProto.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.InitialConditionsLogProto} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.InitialConditionsLogProto.toObject = function(includeInstance, msg) {
var f, obj = {
entitiesList: jspb.Message.toObjectList(msg.getEntitiesList(),
RCRSProto_pb.EntityProto.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.InitialConditionsLogProto}
*/
proto.InitialConditionsLogProto.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.InitialConditionsLogProto;
return proto.InitialConditionsLogProto.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.InitialConditionsLogProto} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.InitialConditionsLogProto}
*/
proto.InitialConditionsLogProto.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new RCRSProto_pb.EntityProto;
reader.readMessage(value,RCRSProto_pb.EntityProto.deserializeBinaryFromReader);
msg.addEntities(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.InitialConditionsLogProto.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.InitialConditionsLogProto.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.InitialConditionsLogProto} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.InitialConditionsLogProto.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getEntitiesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
RCRSProto_pb.EntityProto.serializeBinaryToWriter
);
}
};
/**
* repeated EntityProto entities = 1;
* @return {!Array<!proto.EntityProto>}
*/
proto.InitialConditionsLogProto.prototype.getEntitiesList = function() {
return /** @type{!Array<!proto.EntityProto>} */ (
jspb.Message.getRepeatedWrapperField(this, RCRSProto_pb.EntityProto, 1));
};
/**
* @param {!Array<!proto.EntityProto>} value
* @return {!proto.InitialConditionsLogProto} returns this
*/
proto.InitialConditionsLogProto.prototype.setEntitiesList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.EntityProto=} opt_value
* @param {number=} opt_index
* @return {!proto.EntityProto}
*/
proto.InitialConditionsLogProto.prototype.addEntities = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.EntityProto, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.InitialConditionsLogProto} returns this
*/
proto.InitialConditionsLogProto.prototype.clearEntitiesList = function() {
return this.setEntitiesList([]);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.CommandLogProto.repeatedFields_ = [2];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.CommandLogProto.prototype.toObject = function(opt_includeInstance) {
return proto.CommandLogProto.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.CommandLogProto} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.CommandLogProto.toObject = function(includeInstance, msg) {
var f, obj = {
time: jspb.Message.getFieldWithDefault(msg, 1, 0),
commandsList: jspb.Message.toObjectList(msg.getCommandsList(),
RCRSProto_pb.MessageProto.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.CommandLogProto}
*/
proto.CommandLogProto.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.CommandLogProto;
return proto.CommandLogProto.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.CommandLogProto} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.CommandLogProto}
*/
proto.CommandLogProto.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt32());
msg.setTime(value);
break;
case 2:
var value = new RCRSProto_pb.MessageProto;
reader.readMessage(value,RCRSProto_pb.MessageProto.deserializeBinaryFromReader);
msg.addCommands(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.CommandLogProto.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.CommandLogProto.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.CommandLogProto} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.CommandLogProto.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTime();
if (f !== 0) {
writer.writeInt32(
1,
f
);
}
f = message.getCommandsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
2,
f,
RCRSProto_pb.MessageProto.serializeBinaryToWriter
);
}
};
/**
* optional int32 time = 1;
* @return {number}
*/
proto.CommandLogProto.prototype.getTime = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.CommandLogProto} returns this
*/
proto.CommandLogProto.prototype.setTime = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* repeated MessageProto commands = 2;
* @return {!Array<!proto.MessageProto>}
*/
proto.CommandLogProto.prototype.getCommandsList = function() {
return /** @type{!Array<!proto.MessageProto>} */ (
jspb.Message.getRepeatedWrapperField(this, RCRSProto_pb.MessageProto, 2));
};
/**
* @param {!Array<!proto.MessageProto>} value
* @return {!proto.CommandLogProto} returns this
*/
proto.CommandLogProto.prototype.setCommandsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 2, value);
};
/**
* @param {!proto.MessageProto=} opt_value
* @param {number=} opt_index
* @return {!proto.MessageProto}
*/
proto.CommandLogProto.prototype.addCommands = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.MessageProto, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.CommandLogProto} returns this
*/
proto.CommandLogProto.prototype.clearCommandsList = function() {
return this.setCommandsList([]);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.PerceptionLogProto.repeatedFields_ = [4];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.PerceptionLogProto.prototype.toObject = function(opt_includeInstance) {
return proto.PerceptionLogProto.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.PerceptionLogProto} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.PerceptionLogProto.toObject = function(includeInstance, msg) {
var f, obj = {
time: jspb.Message.getFieldWithDefault(msg, 1, 0),
entityid: jspb.Message.getFieldWithDefault(msg, 2, 0),
visible: (f = msg.getVisible()) && RCRSProto_pb.ChangeSetProto.toObject(includeInstance, f),
communicationsList: jspb.Message.toObjectList(msg.getCommunicationsList(),
RCRSProto_pb.MessageProto.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.PerceptionLogProto}
*/
proto.PerceptionLogProto.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.PerceptionLogProto;
return proto.PerceptionLogProto.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.PerceptionLogProto} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.PerceptionLogProto}
*/
proto.PerceptionLogProto.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt32());
msg.setTime(value);
break;
case 2:
var value = /** @type {number} */ (reader.readInt32());
msg.setEntityid(value);
break;
case 3:
var value = new RCRSProto_pb.ChangeSetProto;
reader.readMessage(value,RCRSProto_pb.ChangeSetProto.deserializeBinaryFromReader);
msg.setVisible(value);
break;
case 4:
var value = new RCRSProto_pb.MessageProto;
reader.readMessage(value,RCRSProto_pb.MessageProto.deserializeBinaryFromReader);
msg.addCommunications(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.PerceptionLogProto.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.PerceptionLogProto.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.PerceptionLogProto} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.PerceptionLogProto.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTime();
if (f !== 0) {
writer.writeInt32(
1,
f
);
}
f = message.getEntityid();
if (f !== 0) {
writer.writeInt32(
2,
f
);
}
f = message.getVisible();
if (f != null) {
writer.writeMessage(
3,
f,
RCRSProto_pb.ChangeSetProto.serializeBinaryToWriter
);
}
f = message.getCommunicationsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
4,
f,
RCRSProto_pb.MessageProto.serializeBinaryToWriter
);
}
};
/**
* optional int32 time = 1;
* @return {number}
*/
proto.PerceptionLogProto.prototype.getTime = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.PerceptionLogProto} returns this
*/
proto.PerceptionLogProto.prototype.setTime = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional int32 entityID = 2;
* @return {number}
*/
proto.PerceptionLogProto.prototype.getEntityid = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {number} value
* @return {!proto.PerceptionLogProto} returns this
*/
proto.PerceptionLogProto.prototype.setEntityid = function(value) {
return jspb.Message.setProto3IntField(this, 2, value);
};
/**
* optional ChangeSetProto visible = 3;
* @return {?proto.ChangeSetProto}
*/
proto.PerceptionLogProto.prototype.getVisible = function() {
return /** @type{?proto.ChangeSetProto} */ (
jspb.Message.getWrapperField(this, RCRSProto_pb.ChangeSetProto, 3));
};
/**
* @param {?proto.ChangeSetProto|undefined} value
* @return {!proto.PerceptionLogProto} returns this
*/
proto.PerceptionLogProto.prototype.setVisible = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.PerceptionLogProto} returns this
*/
proto.PerceptionLogProto.prototype.clearVisible = function() {
return this.setVisible(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.PerceptionLogProto.prototype.hasVisible = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* repeated MessageProto communications = 4;
* @return {!Array<!proto.MessageProto>}
*/
proto.PerceptionLogProto.prototype.getCommunicationsList = function() {
return /** @type{!Array<!proto.MessageProto>} */ (
jspb.Message.getRepeatedWrapperField(this, RCRSProto_pb.MessageProto, 4));
};
/**
* @param {!Array<!proto.MessageProto>} value
* @return {!proto.PerceptionLogProto} returns this
*/
proto.PerceptionLogProto.prototype.setCommunicationsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 4, value);
};
/**
* @param {!proto.MessageProto=} opt_value
* @param {number=} opt_index
* @return {!proto.MessageProto}
*/
proto.PerceptionLogProto.prototype.addCommunications = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.MessageProto, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.PerceptionLogProto} returns this
*/
proto.PerceptionLogProto.prototype.clearCommunicationsList = function() {
return this.setCommunicationsList([]);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.ConfigLogProto.prototype.toObject = function(opt_includeInstance) {
return proto.ConfigLogProto.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.ConfigLogProto} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ConfigLogProto.toObject = function(includeInstance, msg) {
var f, obj = {
config: (f = msg.getConfig()) && RCRSProto_pb.ConfigProto.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.ConfigLogProto}
*/
proto.ConfigLogProto.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.ConfigLogProto;
return proto.ConfigLogProto.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ConfigLogProto} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ConfigLogProto}
*/
proto.ConfigLogProto.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new RCRSProto_pb.ConfigProto;
reader.readMessage(value,RCRSProto_pb.ConfigProto.deserializeBinaryFromReader);
msg.setConfig(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.ConfigLogProto.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.ConfigLogProto.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.ConfigLogProto} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ConfigLogProto.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getConfig();
if (f != null) {
writer.writeMessage(
1,
f,
RCRSProto_pb.ConfigProto.serializeBinaryToWriter
);
}
};
/**
* optional ConfigProto config = 1;
* @return {?proto.ConfigProto}
*/
proto.ConfigLogProto.prototype.getConfig = function() {
return /** @type{?proto.ConfigProto} */ (
jspb.Message.getWrapperField(this, RCRSProto_pb.ConfigProto, 1));
};
/**
* @param {?proto.ConfigProto|undefined} value
* @return {!proto.ConfigLogProto} returns this
*/
proto.ConfigLogProto.prototype.setConfig = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.ConfigLogProto} returns this
*/
proto.ConfigLogProto.prototype.clearConfig = function() {
return this.setConfig(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.ConfigLogProto.prototype.hasConfig = function() {
return jspb.Message.getField(this, 1) != null;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.UpdatesLogProto.prototype.toObject = function(opt_includeInstance) {
return proto.UpdatesLogProto.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.UpdatesLogProto} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.UpdatesLogProto.toObject = function(includeInstance, msg) {
var f, obj = {
time: jspb.Message.getFieldWithDefault(msg, 1, 0),
changes: (f = msg.getChanges()) && RCRSProto_pb.ChangeSetProto.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.UpdatesLogProto}
*/
proto.UpdatesLogProto.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.UpdatesLogProto;
return proto.UpdatesLogProto.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.UpdatesLogProto} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.UpdatesLogProto}
*/
proto.UpdatesLogProto.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt32());
msg.setTime(value);
break;
case 2:
var value = new RCRSProto_pb.ChangeSetProto;
reader.readMessage(value,RCRSProto_pb.ChangeSetProto.deserializeBinaryFromReader);
msg.setChanges(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.UpdatesLogProto.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.UpdatesLogProto.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.UpdatesLogProto} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.UpdatesLogProto.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTime();
if (f !== 0) {
writer.writeInt32(
1,
f
);
}
f = message.getChanges();
if (f != null) {
writer.writeMessage(
2,
f,
RCRSProto_pb.ChangeSetProto.serializeBinaryToWriter
);
}
};
/**
* optional int32 time = 1;
* @return {number}
*/
proto.UpdatesLogProto.prototype.getTime = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.UpdatesLogProto} returns this
*/
proto.UpdatesLogProto.prototype.setTime = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional ChangeSetProto changes = 2;
* @return {?proto.ChangeSetProto}
*/
proto.UpdatesLogProto.prototype.getChanges = function() {
return /** @type{?proto.ChangeSetProto} */ (
jspb.Message.getWrapperField(this, RCRSProto_pb.ChangeSetProto, 2));
};
/**
* @param {?proto.ChangeSetProto|undefined} value
* @return {!proto.UpdatesLogProto} returns this
*/
proto.UpdatesLogProto.prototype.setChanges = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.UpdatesLogProto} returns this
*/
proto.UpdatesLogProto.prototype.clearChanges = function() {
return this.setChanges(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.UpdatesLogProto.prototype.hasChanges = function() {
return jspb.Message.getField(this, 2) != null;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.EndLogProto.prototype.toObject = function(opt_includeInstance) {
return proto.EndLogProto.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.EndLogProto} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.EndLogProto.toObject = function(includeInstance, msg) {
var f, obj = {
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.EndLogProto}
*/
proto.EndLogProto.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.EndLogProto;
return proto.EndLogProto.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.EndLogProto} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.EndLogProto}
*/
proto.EndLogProto.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.EndLogProto.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.EndLogProto.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.EndLogProto} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.EndLogProto.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
};
goog.object.extend(exports, proto);
// source: RCRSProto.proto
/**
* @fileoverview
* @enhanceable
* @suppress {missingRequire} reports error on implicit type usages.
* @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!
/* eslint-disable */
// @ts-nocheck
var jspb = require('google-protobuf');
var goog = jspb;
var global = Function('return this')();
goog.exportSymbol('proto.ChangeSetProto', null, global);
goog.exportSymbol('proto.ChangeSetProto.EntityChangeProto', null, global);
goog.exportSymbol('proto.ConfigProto', null, global);
goog.exportSymbol('proto.EdgeListProto', null, global);
goog.exportSymbol('proto.EdgeProto', null, global);
goog.exportSymbol('proto.EntityListProto', null, global);
goog.exportSymbol('proto.EntityProto', null, global);
goog.exportSymbol('proto.FloatListProto', null, global);
goog.exportSymbol('proto.IntListProto', null, global);
goog.exportSymbol('proto.IntMatrixProto', null, global);
goog.exportSymbol('proto.MessageComponentProto', null, global);
goog.exportSymbol('proto.MessageComponentProto.ComponentCase', null, global);
goog.exportSymbol('proto.MessageListProto', null, global);
goog.exportSymbol('proto.MessageProto', null, global);
goog.exportSymbol('proto.Point2DProto', null, global);
goog.exportSymbol('proto.PropertyProto', null, global);
goog.exportSymbol('proto.PropertyProto.ValueCase', null, global);
goog.exportSymbol('proto.StrListProto', null, global);
goog.exportSymbol('proto.ValueProto', null, global);
goog.exportSymbol('proto.ValueProto.ValueCase', 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.MessageProto = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.MessageProto, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.MessageProto.displayName = 'proto.MessageProto';
}
/**
* 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.MessageListProto = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.MessageListProto.repeatedFields_, null);
};
goog.inherits(proto.MessageListProto, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.MessageListProto.displayName = 'proto.MessageListProto';
}
/**
* 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.MessageComponentProto = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.MessageComponentProto.oneofGroups_);
};
goog.inherits(proto.MessageComponentProto, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.MessageComponentProto.displayName = 'proto.MessageComponentProto';
}
/**
* 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.StrListProto = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.StrListProto.repeatedFields_, null);
};
goog.inherits(proto.StrListProto, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.StrListProto.displayName = 'proto.StrListProto';
}
/**
* 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.IntListProto = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.IntListProto.repeatedFields_, null);
};
goog.inherits(proto.IntListProto, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.IntListProto.displayName = 'proto.IntListProto';
}
/**
* 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.FloatListProto = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.FloatListProto.repeatedFields_, null);
};
goog.inherits(proto.FloatListProto, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.FloatListProto.displayName = 'proto.FloatListProto';
}
/**
* 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.IntMatrixProto = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.IntMatrixProto.repeatedFields_, null);
};
goog.inherits(proto.IntMatrixProto, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.IntMatrixProto.displayName = 'proto.IntMatrixProto';
}
/**
* 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.ValueProto = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ValueProto.oneofGroups_);
};
goog.inherits(proto.ValueProto, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ValueProto.displayName = 'proto.ValueProto';
}
/**
* 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.PropertyProto = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.PropertyProto.oneofGroups_);
};
goog.inherits(proto.PropertyProto, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.PropertyProto.displayName = 'proto.PropertyProto';
}
/**
* 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.Point2DProto = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.Point2DProto, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.Point2DProto.displayName = 'proto.Point2DProto';
}
/**
* 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.EntityProto = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.EntityProto.repeatedFields_, null);
};
goog.inherits(proto.EntityProto, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.EntityProto.displayName = 'proto.EntityProto';
}
/**
* 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.EntityListProto = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.EntityListProto.repeatedFields_, null);
};
goog.inherits(proto.EntityListProto, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.EntityListProto.displayName = 'proto.EntityListProto';
}
/**
* 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.ConfigProto = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.ConfigProto, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ConfigProto.displayName = 'proto.ConfigProto';
}
/**
* 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.EdgeListProto = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.EdgeListProto.repeatedFields_, null);
};
goog.inherits(proto.EdgeListProto, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.EdgeListProto.displayName = 'proto.EdgeListProto';
}
/**
* 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.EdgeProto = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.EdgeProto, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.EdgeProto.displayName = 'proto.EdgeProto';
}
/**
* 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.ChangeSetProto = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ChangeSetProto.repeatedFields_, null);
};
goog.inherits(proto.ChangeSetProto, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ChangeSetProto.displayName = 'proto.ChangeSetProto';
}
/**
* 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.ChangeSetProto.EntityChangeProto = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.ChangeSetProto.EntityChangeProto.repeatedFields_, null);
};
goog.inherits(proto.ChangeSetProto.EntityChangeProto, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.ChangeSetProto.EntityChangeProto.displayName = 'proto.ChangeSetProto.EntityChangeProto';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.MessageProto.prototype.toObject = function(opt_includeInstance) {
return proto.MessageProto.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.MessageProto} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.MessageProto.toObject = function(includeInstance, msg) {
var f, obj = {
urn: jspb.Message.getFieldWithDefault(msg, 1, 0),
componentsMap: (f = msg.getComponentsMap()) ? f.toObject(includeInstance, proto.MessageComponentProto.toObject) : []
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.MessageProto}
*/
proto.MessageProto.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.MessageProto;
return proto.MessageProto.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.MessageProto} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.MessageProto}
*/
proto.MessageProto.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt32());
msg.setUrn(value);
break;
case 2:
var value = msg.getComponentsMap();
reader.readMessage(value, function(message, reader) {
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readInt32, jspb.BinaryReader.prototype.readMessage, proto.MessageComponentProto.deserializeBinaryFromReader, 0, new proto.MessageComponentProto());
});
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.MessageProto.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.MessageProto.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.MessageProto} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.MessageProto.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getUrn();
if (f !== 0) {
writer.writeInt32(
1,
f
);
}
f = message.getComponentsMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeInt32, jspb.BinaryWriter.prototype.writeMessage, proto.MessageComponentProto.serializeBinaryToWriter);
}
};
/**
* optional int32 urn = 1;
* @return {number}
*/
proto.MessageProto.prototype.getUrn = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.MessageProto} returns this
*/
proto.MessageProto.prototype.setUrn = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* map<int32, MessageComponentProto> components = 2;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<number,!proto.MessageComponentProto>}
*/
proto.MessageProto.prototype.getComponentsMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<number,!proto.MessageComponentProto>} */ (
jspb.Message.getMapField(this, 2, opt_noLazyCreate,
proto.MessageComponentProto));
};
/**
* Clears values from the map. The map will be non-null.
* @return {!proto.MessageProto} returns this
*/
proto.MessageProto.prototype.clearComponentsMap = function() {
this.getComponentsMap().clear();
return this;};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.MessageListProto.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.MessageListProto.prototype.toObject = function(opt_includeInstance) {
return proto.MessageListProto.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.MessageListProto} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.MessageListProto.toObject = function(includeInstance, msg) {
var f, obj = {
commandsList: jspb.Message.toObjectList(msg.getCommandsList(),
proto.MessageProto.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.MessageListProto}
*/
proto.MessageListProto.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.MessageListProto;
return proto.MessageListProto.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.MessageListProto} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.MessageListProto}
*/
proto.MessageListProto.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.MessageProto;
reader.readMessage(value,proto.MessageProto.deserializeBinaryFromReader);
msg.addCommands(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.MessageListProto.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.MessageListProto.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.MessageListProto} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.MessageListProto.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getCommandsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
proto.MessageProto.serializeBinaryToWriter
);
}
};
/**
* repeated MessageProto commands = 1;
* @return {!Array<!proto.MessageProto>}
*/
proto.MessageListProto.prototype.getCommandsList = function() {
return /** @type{!Array<!proto.MessageProto>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.MessageProto, 1));
};
/**
* @param {!Array<!proto.MessageProto>} value
* @return {!proto.MessageListProto} returns this
*/
proto.MessageListProto.prototype.setCommandsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.MessageProto=} opt_value
* @param {number=} opt_index
* @return {!proto.MessageProto}
*/
proto.MessageListProto.prototype.addCommands = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.MessageProto, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.MessageListProto} returns this
*/
proto.MessageListProto.prototype.clearCommandsList = function() {
return this.setCommandsList([]);
};
/**
* 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.MessageComponentProto.oneofGroups_ = [[1,2,3,4,5,6,7,8,9,10,11,12,13]];
/**
* @enum {number}
*/
proto.MessageComponentProto.ComponentCase = {
COMPONENT_NOT_SET: 0,
CHANGESET: 1,
COMMANDLIST: 2,
CONFIG: 3,
ENTITY: 4,
ENTITYID: 5,
ENTITYIDLIST: 6,
ENTITYLIST: 7,
FLOATLIST: 8,
INTVALUE: 9,
INTLIST: 10,
RAWDATA: 11,
STRINGVALUE: 12,
STRINGLIST: 13
};
/**
* @return {proto.MessageComponentProto.ComponentCase}
*/
proto.MessageComponentProto.prototype.getComponentCase = function() {
return /** @type {proto.MessageComponentProto.ComponentCase} */(jspb.Message.computeOneofCase(this, proto.MessageComponentProto.oneofGroups_[0]));
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.MessageComponentProto.prototype.toObject = function(opt_includeInstance) {
return proto.MessageComponentProto.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.MessageComponentProto} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.MessageComponentProto.toObject = function(includeInstance, msg) {
var f, obj = {
changeset: (f = msg.getChangeset()) && proto.ChangeSetProto.toObject(includeInstance, f),
commandlist: (f = msg.getCommandlist()) && proto.MessageListProto.toObject(includeInstance, f),
config: (f = msg.getConfig()) && proto.ConfigProto.toObject(includeInstance, f),
entity: (f = msg.getEntity()) && proto.EntityProto.toObject(includeInstance, f),
entityid: jspb.Message.getFieldWithDefault(msg, 5, 0),
entityidlist: (f = msg.getEntityidlist()) && proto.IntListProto.toObject(includeInstance, f),
entitylist: (f = msg.getEntitylist()) && proto.EntityListProto.toObject(includeInstance, f),
floatlist: (f = msg.getFloatlist()) && proto.FloatListProto.toObject(includeInstance, f),
intvalue: jspb.Message.getFieldWithDefault(msg, 9, 0),
intlist: (f = msg.getIntlist()) && proto.IntListProto.toObject(includeInstance, f),
rawdata: msg.getRawdata_asB64(),
stringvalue: jspb.Message.getFieldWithDefault(msg, 12, ""),
stringlist: (f = msg.getStringlist()) && proto.StrListProto.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.MessageComponentProto}
*/
proto.MessageComponentProto.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.MessageComponentProto;
return proto.MessageComponentProto.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.MessageComponentProto} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.MessageComponentProto}
*/
proto.MessageComponentProto.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.ChangeSetProto;
reader.readMessage(value,proto.ChangeSetProto.deserializeBinaryFromReader);
msg.setChangeset(value);
break;
case 2:
var value = new proto.MessageListProto;
reader.readMessage(value,proto.MessageListProto.deserializeBinaryFromReader);
msg.setCommandlist(value);
break;
case 3:
var value = new proto.ConfigProto;
reader.readMessage(value,proto.ConfigProto.deserializeBinaryFromReader);
msg.setConfig(value);
break;
case 4:
var value = new proto.EntityProto;
reader.readMessage(value,proto.EntityProto.deserializeBinaryFromReader);
msg.setEntity(value);
break;
case 5:
var value = /** @type {number} */ (reader.readInt32());
msg.setEntityid(value);
break;
case 6:
var value = new proto.IntListProto;
reader.readMessage(value,proto.IntListProto.deserializeBinaryFromReader);
msg.setEntityidlist(value);
break;
case 7:
var value = new proto.EntityListProto;
reader.readMessage(value,proto.EntityListProto.deserializeBinaryFromReader);
msg.setEntitylist(value);
break;
case 8:
var value = new proto.FloatListProto;
reader.readMessage(value,proto.FloatListProto.deserializeBinaryFromReader);
msg.setFloatlist(value);
break;
case 9:
var value = /** @type {number} */ (reader.readInt32());
msg.setIntvalue(value);
break;
case 10:
var value = new proto.IntListProto;
reader.readMessage(value,proto.IntListProto.deserializeBinaryFromReader);
msg.setIntlist(value);
break;
case 11:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setRawdata(value);
break;
case 12:
var value = /** @type {string} */ (reader.readString());
msg.setStringvalue(value);
break;
case 13:
var value = new proto.StrListProto;
reader.readMessage(value,proto.StrListProto.deserializeBinaryFromReader);
msg.setStringlist(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.MessageComponentProto.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.MessageComponentProto.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.MessageComponentProto} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.MessageComponentProto.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getChangeset();
if (f != null) {
writer.writeMessage(
1,
f,
proto.ChangeSetProto.serializeBinaryToWriter
);
}
f = message.getCommandlist();
if (f != null) {
writer.writeMessage(
2,
f,
proto.MessageListProto.serializeBinaryToWriter
);
}
f = message.getConfig();
if (f != null) {
writer.writeMessage(
3,
f,
proto.ConfigProto.serializeBinaryToWriter
);
}
f = message.getEntity();
if (f != null) {
writer.writeMessage(
4,
f,
proto.EntityProto.serializeBinaryToWriter
);
}
f = /** @type {number} */ (jspb.Message.getField(message, 5));
if (f != null) {
writer.writeInt32(
5,
f
);
}
f = message.getEntityidlist();
if (f != null) {
writer.writeMessage(
6,
f,
proto.IntListProto.serializeBinaryToWriter
);
}
f = message.getEntitylist();
if (f != null) {
writer.writeMessage(
7,
f,
proto.EntityListProto.serializeBinaryToWriter
);
}
f = message.getFloatlist();
if (f != null) {
writer.writeMessage(
8,
f,
proto.FloatListProto.serializeBinaryToWriter
);
}
f = /** @type {number} */ (jspb.Message.getField(message, 9));
if (f != null) {
writer.writeInt32(
9,
f
);
}
f = message.getIntlist();
if (f != null) {
writer.writeMessage(
10,
f,
proto.IntListProto.serializeBinaryToWriter
);
}
f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 11));
if (f != null) {
writer.writeBytes(
11,
f
);
}
f = /** @type {string} */ (jspb.Message.getField(message, 12));
if (f != null) {
writer.writeString(
12,
f
);
}
f = message.getStringlist();
if (f != null) {
writer.writeMessage(
13,
f,
proto.StrListProto.serializeBinaryToWriter
);
}
};
/**
* optional ChangeSetProto changeSet = 1;
* @return {?proto.ChangeSetProto}
*/
proto.MessageComponentProto.prototype.getChangeset = function() {
return /** @type{?proto.ChangeSetProto} */ (
jspb.Message.getWrapperField(this, proto.ChangeSetProto, 1));
};
/**
* @param {?proto.ChangeSetProto|undefined} value
* @return {!proto.MessageComponentProto} returns this
*/
proto.MessageComponentProto.prototype.setChangeset = function(value) {
return jspb.Message.setOneofWrapperField(this, 1, proto.MessageComponentProto.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.MessageComponentProto} returns this
*/
proto.MessageComponentProto.prototype.clearChangeset = function() {
return this.setChangeset(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.MessageComponentProto.prototype.hasChangeset = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional MessageListProto commandList = 2;
* @return {?proto.MessageListProto}
*/
proto.MessageComponentProto.prototype.getCommandlist = function() {
return /** @type{?proto.MessageListProto} */ (
jspb.Message.getWrapperField(this, proto.MessageListProto, 2));
};
/**
* @param {?proto.MessageListProto|undefined} value
* @return {!proto.MessageComponentProto} returns this
*/
proto.MessageComponentProto.prototype.setCommandlist = function(value) {
return jspb.Message.setOneofWrapperField(this, 2, proto.MessageComponentProto.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.MessageComponentProto} returns this
*/
proto.MessageComponentProto.prototype.clearCommandlist = function() {
return this.setCommandlist(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.MessageComponentProto.prototype.hasCommandlist = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional ConfigProto config = 3;
* @return {?proto.ConfigProto}
*/
proto.MessageComponentProto.prototype.getConfig = function() {
return /** @type{?proto.ConfigProto} */ (
jspb.Message.getWrapperField(this, proto.ConfigProto, 3));
};
/**
* @param {?proto.ConfigProto|undefined} value
* @return {!proto.MessageComponentProto} returns this
*/
proto.MessageComponentProto.prototype.setConfig = function(value) {
return jspb.Message.setOneofWrapperField(this, 3, proto.MessageComponentProto.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.MessageComponentProto} returns this
*/
proto.MessageComponentProto.prototype.clearConfig = function() {
return this.setConfig(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.MessageComponentProto.prototype.hasConfig = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional EntityProto entity = 4;
* @return {?proto.EntityProto}
*/
proto.MessageComponentProto.prototype.getEntity = function() {
return /** @type{?proto.EntityProto} */ (
jspb.Message.getWrapperField(this, proto.EntityProto, 4));
};
/**
* @param {?proto.EntityProto|undefined} value
* @return {!proto.MessageComponentProto} returns this
*/
proto.MessageComponentProto.prototype.setEntity = function(value) {
return jspb.Message.setOneofWrapperField(this, 4, proto.MessageComponentProto.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.MessageComponentProto} returns this
*/
proto.MessageComponentProto.prototype.clearEntity = function() {
return this.setEntity(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.MessageComponentProto.prototype.hasEntity = function() {
return jspb.Message.getField(this, 4) != null;
};
/**
* optional int32 entityID = 5;
* @return {number}
*/
proto.MessageComponentProto.prototype.getEntityid = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
};
/**
* @param {number} value
* @return {!proto.MessageComponentProto} returns this
*/
proto.MessageComponentProto.prototype.setEntityid = function(value) {
return jspb.Message.setOneofField(this, 5, proto.MessageComponentProto.oneofGroups_[0], value);
};
/**
* Clears the field making it undefined.
* @return {!proto.MessageComponentProto} returns this
*/
proto.MessageComponentProto.prototype.clearEntityid = function() {
return jspb.Message.setOneofField(this, 5, proto.MessageComponentProto.oneofGroups_[0], undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.MessageComponentProto.prototype.hasEntityid = function() {
return jspb.Message.getField(this, 5) != null;
};
/**
* optional IntListProto entityIDList = 6;
* @return {?proto.IntListProto}
*/
proto.MessageComponentProto.prototype.getEntityidlist = function() {
return /** @type{?proto.IntListProto} */ (
jspb.Message.getWrapperField(this, proto.IntListProto, 6));
};
/**
* @param {?proto.IntListProto|undefined} value
* @return {!proto.MessageComponentProto} returns this
*/
proto.MessageComponentProto.prototype.setEntityidlist = function(value) {
return jspb.Message.setOneofWrapperField(this, 6, proto.MessageComponentProto.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.MessageComponentProto} returns this
*/
proto.MessageComponentProto.prototype.clearEntityidlist = function() {
return this.setEntityidlist(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.MessageComponentProto.prototype.hasEntityidlist = function() {
return jspb.Message.getField(this, 6) != null;
};
/**
* optional EntityListProto entityList = 7;
* @return {?proto.EntityListProto}
*/
proto.MessageComponentProto.prototype.getEntitylist = function() {
return /** @type{?proto.EntityListProto} */ (
jspb.Message.getWrapperField(this, proto.EntityListProto, 7));
};
/**
* @param {?proto.EntityListProto|undefined} value
* @return {!proto.MessageComponentProto} returns this
*/
proto.MessageComponentProto.prototype.setEntitylist = function(value) {
return jspb.Message.setOneofWrapperField(this, 7, proto.MessageComponentProto.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.MessageComponentProto} returns this
*/
proto.MessageComponentProto.prototype.clearEntitylist = function() {
return this.setEntitylist(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.MessageComponentProto.prototype.hasEntitylist = function() {
return jspb.Message.getField(this, 7) != null;
};
/**
* optional FloatListProto floatList = 8;
* @return {?proto.FloatListProto}
*/
proto.MessageComponentProto.prototype.getFloatlist = function() {
return /** @type{?proto.FloatListProto} */ (
jspb.Message.getWrapperField(this, proto.FloatListProto, 8));
};
/**
* @param {?proto.FloatListProto|undefined} value
* @return {!proto.MessageComponentProto} returns this
*/
proto.MessageComponentProto.prototype.setFloatlist = function(value) {
return jspb.Message.setOneofWrapperField(this, 8, proto.MessageComponentProto.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.MessageComponentProto} returns this
*/
proto.MessageComponentProto.prototype.clearFloatlist = function() {
return this.setFloatlist(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.MessageComponentProto.prototype.hasFloatlist = function() {
return jspb.Message.getField(this, 8) != null;
};
/**
* optional int32 intValue = 9;
* @return {number}
*/
proto.MessageComponentProto.prototype.getIntvalue = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
};
/**
* @param {number} value
* @return {!proto.MessageComponentProto} returns this
*/
proto.MessageComponentProto.prototype.setIntvalue = function(value) {
return jspb.Message.setOneofField(this, 9, proto.MessageComponentProto.oneofGroups_[0], value);
};
/**
* Clears the field making it undefined.
* @return {!proto.MessageComponentProto} returns this
*/
proto.MessageComponentProto.prototype.clearIntvalue = function() {
return jspb.Message.setOneofField(this, 9, proto.MessageComponentProto.oneofGroups_[0], undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.MessageComponentProto.prototype.hasIntvalue = function() {
return jspb.Message.getField(this, 9) != null;
};
/**
* optional IntListProto intList = 10;
* @return {?proto.IntListProto}
*/
proto.MessageComponentProto.prototype.getIntlist = function() {
return /** @type{?proto.IntListProto} */ (
jspb.Message.getWrapperField(this, proto.IntListProto, 10));
};
/**
* @param {?proto.IntListProto|undefined} value
* @return {!proto.MessageComponentProto} returns this
*/
proto.MessageComponentProto.prototype.setIntlist = function(value) {
return jspb.Message.setOneofWrapperField(this, 10, proto.MessageComponentProto.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.MessageComponentProto} returns this
*/
proto.MessageComponentProto.prototype.clearIntlist = function() {
return this.setIntlist(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.MessageComponentProto.prototype.hasIntlist = function() {
return jspb.Message.getField(this, 10) != null;
};
/**
* optional bytes rawData = 11;
* @return {string}
*/
proto.MessageComponentProto.prototype.getRawdata = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
};
/**
* optional bytes rawData = 11;
* This is a type-conversion wrapper around `getRawdata()`
* @return {string}
*/
proto.MessageComponentProto.prototype.getRawdata_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getRawdata()));
};
/**
* optional bytes rawData = 11;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getRawdata()`
* @return {!Uint8Array}
*/
proto.MessageComponentProto.prototype.getRawdata_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getRawdata()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.MessageComponentProto} returns this
*/
proto.MessageComponentProto.prototype.setRawdata = function(value) {
return jspb.Message.setOneofField(this, 11, proto.MessageComponentProto.oneofGroups_[0], value);
};
/**
* Clears the field making it undefined.
* @return {!proto.MessageComponentProto} returns this
*/
proto.MessageComponentProto.prototype.clearRawdata = function() {
return jspb.Message.setOneofField(this, 11, proto.MessageComponentProto.oneofGroups_[0], undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.MessageComponentProto.prototype.hasRawdata = function() {
return jspb.Message.getField(this, 11) != null;
};
/**
* optional string stringValue = 12;
* @return {string}
*/
proto.MessageComponentProto.prototype.getStringvalue = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
};
/**
* @param {string} value
* @return {!proto.MessageComponentProto} returns this
*/
proto.MessageComponentProto.prototype.setStringvalue = function(value) {
return jspb.Message.setOneofField(this, 12, proto.MessageComponentProto.oneofGroups_[0], value);
};
/**
* Clears the field making it undefined.
* @return {!proto.MessageComponentProto} returns this
*/
proto.MessageComponentProto.prototype.clearStringvalue = function() {
return jspb.Message.setOneofField(this, 12, proto.MessageComponentProto.oneofGroups_[0], undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.MessageComponentProto.prototype.hasStringvalue = function() {
return jspb.Message.getField(this, 12) != null;
};
/**
* optional StrListProto stringList = 13;
* @return {?proto.StrListProto}
*/
proto.MessageComponentProto.prototype.getStringlist = function() {
return /** @type{?proto.StrListProto} */ (
jspb.Message.getWrapperField(this, proto.StrListProto, 13));
};
/**
* @param {?proto.StrListProto|undefined} value
* @return {!proto.MessageComponentProto} returns this
*/
proto.MessageComponentProto.prototype.setStringlist = function(value) {
return jspb.Message.setOneofWrapperField(this, 13, proto.MessageComponentProto.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.MessageComponentProto} returns this
*/
proto.MessageComponentProto.prototype.clearStringlist = function() {
return this.setStringlist(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.MessageComponentProto.prototype.hasStringlist = function() {
return jspb.Message.getField(this, 13) != null;
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.StrListProto.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.StrListProto.prototype.toObject = function(opt_includeInstance) {
return proto.StrListProto.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.StrListProto} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.StrListProto.toObject = function(includeInstance, msg) {
var f, obj = {
valuesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : 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.StrListProto}
*/
proto.StrListProto.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.StrListProto;
return proto.StrListProto.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.StrListProto} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.StrListProto}
*/
proto.StrListProto.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.addValues(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.StrListProto.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.StrListProto.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.StrListProto} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.StrListProto.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getValuesList();
if (f.length > 0) {
writer.writeRepeatedString(
1,
f
);
}
};
/**
* repeated string values = 1;
* @return {!Array<string>}
*/
proto.StrListProto.prototype.getValuesList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
};
/**
* @param {!Array<string>} value
* @return {!proto.StrListProto} returns this
*/
proto.StrListProto.prototype.setValuesList = function(value) {
return jspb.Message.setField(this, 1, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.StrListProto} returns this
*/
proto.StrListProto.prototype.addValues = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.StrListProto} returns this
*/
proto.StrListProto.prototype.clearValuesList = function() {
return this.setValuesList([]);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.IntListProto.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.IntListProto.prototype.toObject = function(opt_includeInstance) {
return proto.IntListProto.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.IntListProto} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.IntListProto.toObject = function(includeInstance, msg) {
var f, obj = {
valuesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : 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.IntListProto}
*/
proto.IntListProto.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.IntListProto;
return proto.IntListProto.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.IntListProto} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.IntListProto}
*/
proto.IntListProto.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
for (var i = 0; i < values.length; i++) {
msg.addValues(values[i]);
}
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.IntListProto.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.IntListProto.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.IntListProto} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.IntListProto.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getValuesList();
if (f.length > 0) {
writer.writePackedInt32(
1,
f
);
}
};
/**
* repeated int32 values = 1;
* @return {!Array<number>}
*/
proto.IntListProto.prototype.getValuesList = function() {
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
};
/**
* @param {!Array<number>} value
* @return {!proto.IntListProto} returns this
*/
proto.IntListProto.prototype.setValuesList = function(value) {
return jspb.Message.setField(this, 1, value || []);
};
/**
* @param {number} value
* @param {number=} opt_index
* @return {!proto.IntListProto} returns this
*/
proto.IntListProto.prototype.addValues = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.IntListProto} returns this
*/
proto.IntListProto.prototype.clearValuesList = function() {
return this.setValuesList([]);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.FloatListProto.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.FloatListProto.prototype.toObject = function(opt_includeInstance) {
return proto.FloatListProto.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.FloatListProto} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.FloatListProto.toObject = function(includeInstance, msg) {
var f, obj = {
valuesList: (f = jspb.Message.getRepeatedFloatingPointField(msg, 1)) == null ? undefined : 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.FloatListProto}
*/
proto.FloatListProto.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.FloatListProto;
return proto.FloatListProto.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.FloatListProto} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.FloatListProto}
*/
proto.FloatListProto.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedFloat() : [reader.readFloat()]);
for (var i = 0; i < values.length; i++) {
msg.addValues(values[i]);
}
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.FloatListProto.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.FloatListProto.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.FloatListProto} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.FloatListProto.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getValuesList();
if (f.length > 0) {
writer.writePackedFloat(
1,
f
);
}
};
/**
* repeated float values = 1;
* @return {!Array<number>}
*/
proto.FloatListProto.prototype.getValuesList = function() {
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedFloatingPointField(this, 1));
};
/**
* @param {!Array<number>} value
* @return {!proto.FloatListProto} returns this
*/
proto.FloatListProto.prototype.setValuesList = function(value) {
return jspb.Message.setField(this, 1, value || []);
};
/**
* @param {number} value
* @param {number=} opt_index
* @return {!proto.FloatListProto} returns this
*/
proto.FloatListProto.prototype.addValues = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.FloatListProto} returns this
*/
proto.FloatListProto.prototype.clearValuesList = function() {
return this.setValuesList([]);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.IntMatrixProto.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.IntMatrixProto.prototype.toObject = function(opt_includeInstance) {
return proto.IntMatrixProto.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.IntMatrixProto} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.IntMatrixProto.toObject = function(includeInstance, msg) {
var f, obj = {
valuesList: jspb.Message.toObjectList(msg.getValuesList(),
proto.IntListProto.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.IntMatrixProto}
*/
proto.IntMatrixProto.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.IntMatrixProto;
return proto.IntMatrixProto.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.IntMatrixProto} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.IntMatrixProto}
*/
proto.IntMatrixProto.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.IntListProto;
reader.readMessage(value,proto.IntListProto.deserializeBinaryFromReader);
msg.addValues(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.IntMatrixProto.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.IntMatrixProto.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.IntMatrixProto} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.IntMatrixProto.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getValuesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
proto.IntListProto.serializeBinaryToWriter
);
}
};
/**
* repeated IntListProto values = 1;
* @return {!Array<!proto.IntListProto>}
*/
proto.IntMatrixProto.prototype.getValuesList = function() {
return /** @type{!Array<!proto.IntListProto>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.IntListProto, 1));
};
/**
* @param {!Array<!proto.IntListProto>} value
* @return {!proto.IntMatrixProto} returns this
*/
proto.IntMatrixProto.prototype.setValuesList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.IntListProto=} opt_value
* @param {number=} opt_index
* @return {!proto.IntListProto}
*/
proto.IntMatrixProto.prototype.addValues = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.IntListProto, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.IntMatrixProto} returns this
*/
proto.IntMatrixProto.prototype.clearValuesList = function() {
return this.setValuesList([]);
};
/**
* 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.ValueProto.oneofGroups_ = [[2,3,4,5,6,7,8,9]];
/**
* @enum {number}
*/
proto.ValueProto.ValueCase = {
VALUE_NOT_SET: 0,
INTVALUE: 2,
BOOLVALUE: 3,
DOUBLEVALUE: 4,
BYTELIST: 5,
INTLIST: 6,
INTMATRIX: 7,
EDGELIST: 8,
POINT2D: 9
};
/**
* @return {proto.ValueProto.ValueCase}
*/
proto.ValueProto.prototype.getValueCase = function() {
return /** @type {proto.ValueProto.ValueCase} */(jspb.Message.computeOneofCase(this, proto.ValueProto.oneofGroups_[0]));
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.ValueProto.prototype.toObject = function(opt_includeInstance) {
return proto.ValueProto.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.ValueProto} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ValueProto.toObject = function(includeInstance, msg) {
var f, obj = {
defined: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
intvalue: jspb.Message.getFieldWithDefault(msg, 2, 0),
boolvalue: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
doublevalue: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
bytelist: msg.getBytelist_asB64(),
intlist: (f = msg.getIntlist()) && proto.IntListProto.toObject(includeInstance, f),
intmatrix: (f = msg.getIntmatrix()) && proto.IntMatrixProto.toObject(includeInstance, f),
edgelist: (f = msg.getEdgelist()) && proto.EdgeListProto.toObject(includeInstance, f),
point2d: (f = msg.getPoint2d()) && proto.Point2DProto.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.ValueProto}
*/
proto.ValueProto.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.ValueProto;
return proto.ValueProto.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ValueProto} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ValueProto}
*/
proto.ValueProto.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {boolean} */ (reader.readBool());
msg.setDefined(value);
break;
case 2:
var value = /** @type {number} */ (reader.readInt32());
msg.setIntvalue(value);
break;
case 3:
var value = /** @type {boolean} */ (reader.readBool());
msg.setBoolvalue(value);
break;
case 4:
var value = /** @type {number} */ (reader.readDouble());
msg.setDoublevalue(value);
break;
case 5:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setBytelist(value);
break;
case 6:
var value = new proto.IntListProto;
reader.readMessage(value,proto.IntListProto.deserializeBinaryFromReader);
msg.setIntlist(value);
break;
case 7:
var value = new proto.IntMatrixProto;
reader.readMessage(value,proto.IntMatrixProto.deserializeBinaryFromReader);
msg.setIntmatrix(value);
break;
case 8:
var value = new proto.EdgeListProto;
reader.readMessage(value,proto.EdgeListProto.deserializeBinaryFromReader);
msg.setEdgelist(value);
break;
case 9:
var value = new proto.Point2DProto;
reader.readMessage(value,proto.Point2DProto.deserializeBinaryFromReader);
msg.setPoint2d(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.ValueProto.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.ValueProto.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.ValueProto} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ValueProto.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getDefined();
if (f) {
writer.writeBool(
1,
f
);
}
f = /** @type {number} */ (jspb.Message.getField(message, 2));
if (f != null) {
writer.writeInt32(
2,
f
);
}
f = /** @type {boolean} */ (jspb.Message.getField(message, 3));
if (f != null) {
writer.writeBool(
3,
f
);
}
f = /** @type {number} */ (jspb.Message.getField(message, 4));
if (f != null) {
writer.writeDouble(
4,
f
);
}
f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 5));
if (f != null) {
writer.writeBytes(
5,
f
);
}
f = message.getIntlist();
if (f != null) {
writer.writeMessage(
6,
f,
proto.IntListProto.serializeBinaryToWriter
);
}
f = message.getIntmatrix();
if (f != null) {
writer.writeMessage(
7,
f,
proto.IntMatrixProto.serializeBinaryToWriter
);
}
f = message.getEdgelist();
if (f != null) {
writer.writeMessage(
8,
f,
proto.EdgeListProto.serializeBinaryToWriter
);
}
f = message.getPoint2d();
if (f != null) {
writer.writeMessage(
9,
f,
proto.Point2DProto.serializeBinaryToWriter
);
}
};
/**
* optional bool defined = 1;
* @return {boolean}
*/
proto.ValueProto.prototype.getDefined = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
};
/**
* @param {boolean} value
* @return {!proto.ValueProto} returns this
*/
proto.ValueProto.prototype.setDefined = function(value) {
return jspb.Message.setProto3BooleanField(this, 1, value);
};
/**
* optional int32 intValue = 2;
* @return {number}
*/
proto.ValueProto.prototype.getIntvalue = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {number} value
* @return {!proto.ValueProto} returns this
*/
proto.ValueProto.prototype.setIntvalue = function(value) {
return jspb.Message.setOneofField(this, 2, proto.ValueProto.oneofGroups_[0], value);
};
/**
* Clears the field making it undefined.
* @return {!proto.ValueProto} returns this
*/
proto.ValueProto.prototype.clearIntvalue = function() {
return jspb.Message.setOneofField(this, 2, proto.ValueProto.oneofGroups_[0], undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.ValueProto.prototype.hasIntvalue = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional bool boolValue = 3;
* @return {boolean}
*/
proto.ValueProto.prototype.getBoolvalue = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
};
/**
* @param {boolean} value
* @return {!proto.ValueProto} returns this
*/
proto.ValueProto.prototype.setBoolvalue = function(value) {
return jspb.Message.setOneofField(this, 3, proto.ValueProto.oneofGroups_[0], value);
};
/**
* Clears the field making it undefined.
* @return {!proto.ValueProto} returns this
*/
proto.ValueProto.prototype.clearBoolvalue = function() {
return jspb.Message.setOneofField(this, 3, proto.ValueProto.oneofGroups_[0], undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.ValueProto.prototype.hasBoolvalue = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional double doubleValue = 4;
* @return {number}
*/
proto.ValueProto.prototype.getDoublevalue = function() {
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
};
/**
* @param {number} value
* @return {!proto.ValueProto} returns this
*/
proto.ValueProto.prototype.setDoublevalue = function(value) {
return jspb.Message.setOneofField(this, 4, proto.ValueProto.oneofGroups_[0], value);
};
/**
* Clears the field making it undefined.
* @return {!proto.ValueProto} returns this
*/
proto.ValueProto.prototype.clearDoublevalue = function() {
return jspb.Message.setOneofField(this, 4, proto.ValueProto.oneofGroups_[0], undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.ValueProto.prototype.hasDoublevalue = function() {
return jspb.Message.getField(this, 4) != null;
};
/**
* optional bytes byteList = 5;
* @return {string}
*/
proto.ValueProto.prototype.getBytelist = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
};
/**
* optional bytes byteList = 5;
* This is a type-conversion wrapper around `getBytelist()`
* @return {string}
*/
proto.ValueProto.prototype.getBytelist_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getBytelist()));
};
/**
* optional bytes byteList = 5;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getBytelist()`
* @return {!Uint8Array}
*/
proto.ValueProto.prototype.getBytelist_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getBytelist()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.ValueProto} returns this
*/
proto.ValueProto.prototype.setBytelist = function(value) {
return jspb.Message.setOneofField(this, 5, proto.ValueProto.oneofGroups_[0], value);
};
/**
* Clears the field making it undefined.
* @return {!proto.ValueProto} returns this
*/
proto.ValueProto.prototype.clearBytelist = function() {
return jspb.Message.setOneofField(this, 5, proto.ValueProto.oneofGroups_[0], undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.ValueProto.prototype.hasBytelist = function() {
return jspb.Message.getField(this, 5) != null;
};
/**
* optional IntListProto intList = 6;
* @return {?proto.IntListProto}
*/
proto.ValueProto.prototype.getIntlist = function() {
return /** @type{?proto.IntListProto} */ (
jspb.Message.getWrapperField(this, proto.IntListProto, 6));
};
/**
* @param {?proto.IntListProto|undefined} value
* @return {!proto.ValueProto} returns this
*/
proto.ValueProto.prototype.setIntlist = function(value) {
return jspb.Message.setOneofWrapperField(this, 6, proto.ValueProto.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.ValueProto} returns this
*/
proto.ValueProto.prototype.clearIntlist = function() {
return this.setIntlist(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.ValueProto.prototype.hasIntlist = function() {
return jspb.Message.getField(this, 6) != null;
};
/**
* optional IntMatrixProto intMatrix = 7;
* @return {?proto.IntMatrixProto}
*/
proto.ValueProto.prototype.getIntmatrix = function() {
return /** @type{?proto.IntMatrixProto} */ (
jspb.Message.getWrapperField(this, proto.IntMatrixProto, 7));
};
/**
* @param {?proto.IntMatrixProto|undefined} value
* @return {!proto.ValueProto} returns this
*/
proto.ValueProto.prototype.setIntmatrix = function(value) {
return jspb.Message.setOneofWrapperField(this, 7, proto.ValueProto.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.ValueProto} returns this
*/
proto.ValueProto.prototype.clearIntmatrix = function() {
return this.setIntmatrix(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.ValueProto.prototype.hasIntmatrix = function() {
return jspb.Message.getField(this, 7) != null;
};
/**
* optional EdgeListProto edgeList = 8;
* @return {?proto.EdgeListProto}
*/
proto.ValueProto.prototype.getEdgelist = function() {
return /** @type{?proto.EdgeListProto} */ (
jspb.Message.getWrapperField(this, proto.EdgeListProto, 8));
};
/**
* @param {?proto.EdgeListProto|undefined} value
* @return {!proto.ValueProto} returns this
*/
proto.ValueProto.prototype.setEdgelist = function(value) {
return jspb.Message.setOneofWrapperField(this, 8, proto.ValueProto.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.ValueProto} returns this
*/
proto.ValueProto.prototype.clearEdgelist = function() {
return this.setEdgelist(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.ValueProto.prototype.hasEdgelist = function() {
return jspb.Message.getField(this, 8) != null;
};
/**
* optional Point2DProto point2D = 9;
* @return {?proto.Point2DProto}
*/
proto.ValueProto.prototype.getPoint2d = function() {
return /** @type{?proto.Point2DProto} */ (
jspb.Message.getWrapperField(this, proto.Point2DProto, 9));
};
/**
* @param {?proto.Point2DProto|undefined} value
* @return {!proto.ValueProto} returns this
*/
proto.ValueProto.prototype.setPoint2d = function(value) {
return jspb.Message.setOneofWrapperField(this, 9, proto.ValueProto.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.ValueProto} returns this
*/
proto.ValueProto.prototype.clearPoint2d = function() {
return this.setPoint2d(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.ValueProto.prototype.hasPoint2d = function() {
return jspb.Message.getField(this, 9) != 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.PropertyProto.oneofGroups_ = [[3,4,5,6,7,8,9,10]];
/**
* @enum {number}
*/
proto.PropertyProto.ValueCase = {
VALUE_NOT_SET: 0,
INTVALUE: 3,
BOOLVALUE: 4,
DOUBLEVALUE: 5,
BYTELIST: 6,
INTLIST: 7,
INTMATRIX: 8,
EDGELIST: 9,
POINT2D: 10
};
/**
* @return {proto.PropertyProto.ValueCase}
*/
proto.PropertyProto.prototype.getValueCase = function() {
return /** @type {proto.PropertyProto.ValueCase} */(jspb.Message.computeOneofCase(this, proto.PropertyProto.oneofGroups_[0]));
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.PropertyProto.prototype.toObject = function(opt_includeInstance) {
return proto.PropertyProto.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.PropertyProto} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.PropertyProto.toObject = function(includeInstance, msg) {
var f, obj = {
urn: jspb.Message.getFieldWithDefault(msg, 1, 0),
defined: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
intvalue: jspb.Message.getFieldWithDefault(msg, 3, 0),
boolvalue: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
doublevalue: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
bytelist: msg.getBytelist_asB64(),
intlist: (f = msg.getIntlist()) && proto.IntListProto.toObject(includeInstance, f),
intmatrix: (f = msg.getIntmatrix()) && proto.IntMatrixProto.toObject(includeInstance, f),
edgelist: (f = msg.getEdgelist()) && proto.EdgeListProto.toObject(includeInstance, f),
point2d: (f = msg.getPoint2d()) && proto.Point2DProto.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.PropertyProto}
*/
proto.PropertyProto.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.PropertyProto;
return proto.PropertyProto.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.PropertyProto} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.PropertyProto}
*/
proto.PropertyProto.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt32());
msg.setUrn(value);
break;
case 2:
var value = /** @type {boolean} */ (reader.readBool());
msg.setDefined(value);
break;
case 3:
var value = /** @type {number} */ (reader.readInt32());
msg.setIntvalue(value);
break;
case 4:
var value = /** @type {boolean} */ (reader.readBool());
msg.setBoolvalue(value);
break;
case 5:
var value = /** @type {number} */ (reader.readDouble());
msg.setDoublevalue(value);
break;
case 6:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setBytelist(value);
break;
case 7:
var value = new proto.IntListProto;
reader.readMessage(value,proto.IntListProto.deserializeBinaryFromReader);
msg.setIntlist(value);
break;
case 8:
var value = new proto.IntMatrixProto;
reader.readMessage(value,proto.IntMatrixProto.deserializeBinaryFromReader);
msg.setIntmatrix(value);
break;
case 9:
var value = new proto.EdgeListProto;
reader.readMessage(value,proto.EdgeListProto.deserializeBinaryFromReader);
msg.setEdgelist(value);
break;
case 10:
var value = new proto.Point2DProto;
reader.readMessage(value,proto.Point2DProto.deserializeBinaryFromReader);
msg.setPoint2d(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.PropertyProto.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.PropertyProto.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.PropertyProto} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.PropertyProto.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getUrn();
if (f !== 0) {
writer.writeInt32(
1,
f
);
}
f = message.getDefined();
if (f) {
writer.writeBool(
2,
f
);
}
f = /** @type {number} */ (jspb.Message.getField(message, 3));
if (f != null) {
writer.writeInt32(
3,
f
);
}
f = /** @type {boolean} */ (jspb.Message.getField(message, 4));
if (f != null) {
writer.writeBool(
4,
f
);
}
f = /** @type {number} */ (jspb.Message.getField(message, 5));
if (f != null) {
writer.writeDouble(
5,
f
);
}
f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 6));
if (f != null) {
writer.writeBytes(
6,
f
);
}
f = message.getIntlist();
if (f != null) {
writer.writeMessage(
7,
f,
proto.IntListProto.serializeBinaryToWriter
);
}
f = message.getIntmatrix();
if (f != null) {
writer.writeMessage(
8,
f,
proto.IntMatrixProto.serializeBinaryToWriter
);
}
f = message.getEdgelist();
if (f != null) {
writer.writeMessage(
9,
f,
proto.EdgeListProto.serializeBinaryToWriter
);
}
f = message.getPoint2d();
if (f != null) {
writer.writeMessage(
10,
f,
proto.Point2DProto.serializeBinaryToWriter
);
}
};
/**
* optional int32 urn = 1;
* @return {number}
*/
proto.PropertyProto.prototype.getUrn = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.PropertyProto} returns this
*/
proto.PropertyProto.prototype.setUrn = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional bool defined = 2;
* @return {boolean}
*/
proto.PropertyProto.prototype.getDefined = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
};
/**
* @param {boolean} value
* @return {!proto.PropertyProto} returns this
*/
proto.PropertyProto.prototype.setDefined = function(value) {
return jspb.Message.setProto3BooleanField(this, 2, value);
};
/**
* optional int32 intValue = 3;
* @return {number}
*/
proto.PropertyProto.prototype.getIntvalue = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/**
* @param {number} value
* @return {!proto.PropertyProto} returns this
*/
proto.PropertyProto.prototype.setIntvalue = function(value) {
return jspb.Message.setOneofField(this, 3, proto.PropertyProto.oneofGroups_[0], value);
};
/**
* Clears the field making it undefined.
* @return {!proto.PropertyProto} returns this
*/
proto.PropertyProto.prototype.clearIntvalue = function() {
return jspb.Message.setOneofField(this, 3, proto.PropertyProto.oneofGroups_[0], undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.PropertyProto.prototype.hasIntvalue = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional bool boolValue = 4;
* @return {boolean}
*/
proto.PropertyProto.prototype.getBoolvalue = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
};
/**
* @param {boolean} value
* @return {!proto.PropertyProto} returns this
*/
proto.PropertyProto.prototype.setBoolvalue = function(value) {
return jspb.Message.setOneofField(this, 4, proto.PropertyProto.oneofGroups_[0], value);
};
/**
* Clears the field making it undefined.
* @return {!proto.PropertyProto} returns this
*/
proto.PropertyProto.prototype.clearBoolvalue = function() {
return jspb.Message.setOneofField(this, 4, proto.PropertyProto.oneofGroups_[0], undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.PropertyProto.prototype.hasBoolvalue = function() {
return jspb.Message.getField(this, 4) != null;
};
/**
* optional double doubleValue = 5;
* @return {number}
*/
proto.PropertyProto.prototype.getDoublevalue = function() {
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
};
/**
* @param {number} value
* @return {!proto.PropertyProto} returns this
*/
proto.PropertyProto.prototype.setDoublevalue = function(value) {
return jspb.Message.setOneofField(this, 5, proto.PropertyProto.oneofGroups_[0], value);
};
/**
* Clears the field making it undefined.
* @return {!proto.PropertyProto} returns this
*/
proto.PropertyProto.prototype.clearDoublevalue = function() {
return jspb.Message.setOneofField(this, 5, proto.PropertyProto.oneofGroups_[0], undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.PropertyProto.prototype.hasDoublevalue = function() {
return jspb.Message.getField(this, 5) != null;
};
/**
* optional bytes byteList = 6;
* @return {string}
*/
proto.PropertyProto.prototype.getBytelist = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
};
/**
* optional bytes byteList = 6;
* This is a type-conversion wrapper around `getBytelist()`
* @return {string}
*/
proto.PropertyProto.prototype.getBytelist_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getBytelist()));
};
/**
* optional bytes byteList = 6;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getBytelist()`
* @return {!Uint8Array}
*/
proto.PropertyProto.prototype.getBytelist_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getBytelist()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.PropertyProto} returns this
*/
proto.PropertyProto.prototype.setBytelist = function(value) {
return jspb.Message.setOneofField(this, 6, proto.PropertyProto.oneofGroups_[0], value);
};
/**
* Clears the field making it undefined.
* @return {!proto.PropertyProto} returns this
*/
proto.PropertyProto.prototype.clearBytelist = function() {
return jspb.Message.setOneofField(this, 6, proto.PropertyProto.oneofGroups_[0], undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.PropertyProto.prototype.hasBytelist = function() {
return jspb.Message.getField(this, 6) != null;
};
/**
* optional IntListProto intList = 7;
* @return {?proto.IntListProto}
*/
proto.PropertyProto.prototype.getIntlist = function() {
return /** @type{?proto.IntListProto} */ (
jspb.Message.getWrapperField(this, proto.IntListProto, 7));
};
/**
* @param {?proto.IntListProto|undefined} value
* @return {!proto.PropertyProto} returns this
*/
proto.PropertyProto.prototype.setIntlist = function(value) {
return jspb.Message.setOneofWrapperField(this, 7, proto.PropertyProto.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.PropertyProto} returns this
*/
proto.PropertyProto.prototype.clearIntlist = function() {
return this.setIntlist(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.PropertyProto.prototype.hasIntlist = function() {
return jspb.Message.getField(this, 7) != null;
};
/**
* optional IntMatrixProto intMatrix = 8;
* @return {?proto.IntMatrixProto}
*/
proto.PropertyProto.prototype.getIntmatrix = function() {
return /** @type{?proto.IntMatrixProto} */ (
jspb.Message.getWrapperField(this, proto.IntMatrixProto, 8));
};
/**
* @param {?proto.IntMatrixProto|undefined} value
* @return {!proto.PropertyProto} returns this
*/
proto.PropertyProto.prototype.setIntmatrix = function(value) {
return jspb.Message.setOneofWrapperField(this, 8, proto.PropertyProto.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.PropertyProto} returns this
*/
proto.PropertyProto.prototype.clearIntmatrix = function() {
return this.setIntmatrix(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.PropertyProto.prototype.hasIntmatrix = function() {
return jspb.Message.getField(this, 8) != null;
};
/**
* optional EdgeListProto edgeList = 9;
* @return {?proto.EdgeListProto}
*/
proto.PropertyProto.prototype.getEdgelist = function() {
return /** @type{?proto.EdgeListProto} */ (
jspb.Message.getWrapperField(this, proto.EdgeListProto, 9));
};
/**
* @param {?proto.EdgeListProto|undefined} value
* @return {!proto.PropertyProto} returns this
*/
proto.PropertyProto.prototype.setEdgelist = function(value) {
return jspb.Message.setOneofWrapperField(this, 9, proto.PropertyProto.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.PropertyProto} returns this
*/
proto.PropertyProto.prototype.clearEdgelist = function() {
return this.setEdgelist(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.PropertyProto.prototype.hasEdgelist = function() {
return jspb.Message.getField(this, 9) != null;
};
/**
* optional Point2DProto point2D = 10;
* @return {?proto.Point2DProto}
*/
proto.PropertyProto.prototype.getPoint2d = function() {
return /** @type{?proto.Point2DProto} */ (
jspb.Message.getWrapperField(this, proto.Point2DProto, 10));
};
/**
* @param {?proto.Point2DProto|undefined} value
* @return {!proto.PropertyProto} returns this
*/
proto.PropertyProto.prototype.setPoint2d = function(value) {
return jspb.Message.setOneofWrapperField(this, 10, proto.PropertyProto.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.PropertyProto} returns this
*/
proto.PropertyProto.prototype.clearPoint2d = function() {
return this.setPoint2d(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.PropertyProto.prototype.hasPoint2d = function() {
return jspb.Message.getField(this, 10) != null;
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.Point2DProto.prototype.toObject = function(opt_includeInstance) {
return proto.Point2DProto.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.Point2DProto} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.Point2DProto.toObject = function(includeInstance, msg) {
var f, obj = {
x: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
y: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.Point2DProto}
*/
proto.Point2DProto.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.Point2DProto;
return proto.Point2DProto.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.Point2DProto} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.Point2DProto}
*/
proto.Point2DProto.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readDouble());
msg.setX(value);
break;
case 2:
var value = /** @type {number} */ (reader.readDouble());
msg.setY(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.Point2DProto.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.Point2DProto.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.Point2DProto} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.Point2DProto.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getX();
if (f !== 0.0) {
writer.writeDouble(
1,
f
);
}
f = message.getY();
if (f !== 0.0) {
writer.writeDouble(
2,
f
);
}
};
/**
* optional double X = 1;
* @return {number}
*/
proto.Point2DProto.prototype.getX = function() {
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
};
/**
* @param {number} value
* @return {!proto.Point2DProto} returns this
*/
proto.Point2DProto.prototype.setX = function(value) {
return jspb.Message.setProto3FloatField(this, 1, value);
};
/**
* optional double Y = 2;
* @return {number}
*/
proto.Point2DProto.prototype.getY = function() {
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
};
/**
* @param {number} value
* @return {!proto.Point2DProto} returns this
*/
proto.Point2DProto.prototype.setY = function(value) {
return jspb.Message.setProto3FloatField(this, 2, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.EntityProto.repeatedFields_ = [3];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.EntityProto.prototype.toObject = function(opt_includeInstance) {
return proto.EntityProto.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.EntityProto} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.EntityProto.toObject = function(includeInstance, msg) {
var f, obj = {
urn: jspb.Message.getFieldWithDefault(msg, 1, 0),
entityid: jspb.Message.getFieldWithDefault(msg, 2, 0),
propertiesList: jspb.Message.toObjectList(msg.getPropertiesList(),
proto.PropertyProto.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.EntityProto}
*/
proto.EntityProto.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.EntityProto;
return proto.EntityProto.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.EntityProto} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.EntityProto}
*/
proto.EntityProto.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt32());
msg.setUrn(value);
break;
case 2:
var value = /** @type {number} */ (reader.readInt32());
msg.setEntityid(value);
break;
case 3:
var value = new proto.PropertyProto;
reader.readMessage(value,proto.PropertyProto.deserializeBinaryFromReader);
msg.addProperties(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.EntityProto.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.EntityProto.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.EntityProto} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.EntityProto.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getUrn();
if (f !== 0) {
writer.writeInt32(
1,
f
);
}
f = message.getEntityid();
if (f !== 0) {
writer.writeInt32(
2,
f
);
}
f = message.getPropertiesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
3,
f,
proto.PropertyProto.serializeBinaryToWriter
);
}
};
/**
* optional int32 urn = 1;
* @return {number}
*/
proto.EntityProto.prototype.getUrn = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.EntityProto} returns this
*/
proto.EntityProto.prototype.setUrn = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional int32 entityID = 2;
* @return {number}
*/
proto.EntityProto.prototype.getEntityid = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {number} value
* @return {!proto.EntityProto} returns this
*/
proto.EntityProto.prototype.setEntityid = function(value) {
return jspb.Message.setProto3IntField(this, 2, value);
};
/**
* repeated PropertyProto properties = 3;
* @return {!Array<!proto.PropertyProto>}
*/
proto.EntityProto.prototype.getPropertiesList = function() {
return /** @type{!Array<!proto.PropertyProto>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.PropertyProto, 3));
};
/**
* @param {!Array<!proto.PropertyProto>} value
* @return {!proto.EntityProto} returns this
*/
proto.EntityProto.prototype.setPropertiesList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 3, value);
};
/**
* @param {!proto.PropertyProto=} opt_value
* @param {number=} opt_index
* @return {!proto.PropertyProto}
*/
proto.EntityProto.prototype.addProperties = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.PropertyProto, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.EntityProto} returns this
*/
proto.EntityProto.prototype.clearPropertiesList = function() {
return this.setPropertiesList([]);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.EntityListProto.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.EntityListProto.prototype.toObject = function(opt_includeInstance) {
return proto.EntityListProto.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.EntityListProto} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.EntityListProto.toObject = function(includeInstance, msg) {
var f, obj = {
entitiesList: jspb.Message.toObjectList(msg.getEntitiesList(),
proto.EntityProto.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.EntityListProto}
*/
proto.EntityListProto.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.EntityListProto;
return proto.EntityListProto.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.EntityListProto} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.EntityListProto}
*/
proto.EntityListProto.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.EntityProto;
reader.readMessage(value,proto.EntityProto.deserializeBinaryFromReader);
msg.addEntities(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.EntityListProto.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.EntityListProto.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.EntityListProto} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.EntityListProto.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getEntitiesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
proto.EntityProto.serializeBinaryToWriter
);
}
};
/**
* repeated EntityProto entities = 1;
* @return {!Array<!proto.EntityProto>}
*/
proto.EntityListProto.prototype.getEntitiesList = function() {
return /** @type{!Array<!proto.EntityProto>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.EntityProto, 1));
};
/**
* @param {!Array<!proto.EntityProto>} value
* @return {!proto.EntityListProto} returns this
*/
proto.EntityListProto.prototype.setEntitiesList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.EntityProto=} opt_value
* @param {number=} opt_index
* @return {!proto.EntityProto}
*/
proto.EntityListProto.prototype.addEntities = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.EntityProto, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.EntityListProto} returns this
*/
proto.EntityListProto.prototype.clearEntitiesList = function() {
return this.setEntitiesList([]);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.ConfigProto.prototype.toObject = function(opt_includeInstance) {
return proto.ConfigProto.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.ConfigProto} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ConfigProto.toObject = function(includeInstance, msg) {
var f, obj = {
dataMap: (f = msg.getDataMap()) ? f.toObject(includeInstance, undefined) : []
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.ConfigProto}
*/
proto.ConfigProto.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.ConfigProto;
return proto.ConfigProto.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ConfigProto} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ConfigProto}
*/
proto.ConfigProto.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = msg.getDataMap();
reader.readMessage(value, function(message, reader) {
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
});
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.ConfigProto.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.ConfigProto.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.ConfigProto} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ConfigProto.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getDataMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
}
};
/**
* map<string, string> data = 1;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<string,string>}
*/
proto.ConfigProto.prototype.getDataMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<string,string>} */ (
jspb.Message.getMapField(this, 1, opt_noLazyCreate,
null));
};
/**
* Clears values from the map. The map will be non-null.
* @return {!proto.ConfigProto} returns this
*/
proto.ConfigProto.prototype.clearDataMap = function() {
this.getDataMap().clear();
return this;};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.EdgeListProto.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.EdgeListProto.prototype.toObject = function(opt_includeInstance) {
return proto.EdgeListProto.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.EdgeListProto} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.EdgeListProto.toObject = function(includeInstance, msg) {
var f, obj = {
edgesList: jspb.Message.toObjectList(msg.getEdgesList(),
proto.EdgeProto.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.EdgeListProto}
*/
proto.EdgeListProto.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.EdgeListProto;
return proto.EdgeListProto.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.EdgeListProto} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.EdgeListProto}
*/
proto.EdgeListProto.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.EdgeProto;
reader.readMessage(value,proto.EdgeProto.deserializeBinaryFromReader);
msg.addEdges(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.EdgeListProto.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.EdgeListProto.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.EdgeListProto} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.EdgeListProto.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getEdgesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
proto.EdgeProto.serializeBinaryToWriter
);
}
};
/**
* repeated EdgeProto edges = 1;
* @return {!Array<!proto.EdgeProto>}
*/
proto.EdgeListProto.prototype.getEdgesList = function() {
return /** @type{!Array<!proto.EdgeProto>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.EdgeProto, 1));
};
/**
* @param {!Array<!proto.EdgeProto>} value
* @return {!proto.EdgeListProto} returns this
*/
proto.EdgeListProto.prototype.setEdgesList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.EdgeProto=} opt_value
* @param {number=} opt_index
* @return {!proto.EdgeProto}
*/
proto.EdgeListProto.prototype.addEdges = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.EdgeProto, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.EdgeListProto} returns this
*/
proto.EdgeListProto.prototype.clearEdgesList = function() {
return this.setEdgesList([]);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.EdgeProto.prototype.toObject = function(opt_includeInstance) {
return proto.EdgeProto.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.EdgeProto} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.EdgeProto.toObject = function(includeInstance, msg) {
var f, obj = {
startx: jspb.Message.getFieldWithDefault(msg, 1, 0),
starty: jspb.Message.getFieldWithDefault(msg, 2, 0),
endx: jspb.Message.getFieldWithDefault(msg, 3, 0),
endy: jspb.Message.getFieldWithDefault(msg, 4, 0),
neighbour: jspb.Message.getFieldWithDefault(msg, 5, 0)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.EdgeProto}
*/
proto.EdgeProto.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.EdgeProto;
return proto.EdgeProto.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.EdgeProto} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.EdgeProto}
*/
proto.EdgeProto.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt32());
msg.setStartx(value);
break;
case 2:
var value = /** @type {number} */ (reader.readInt32());
msg.setStarty(value);
break;
case 3:
var value = /** @type {number} */ (reader.readInt32());
msg.setEndx(value);
break;
case 4:
var value = /** @type {number} */ (reader.readInt32());
msg.setEndy(value);
break;
case 5:
var value = /** @type {number} */ (reader.readInt32());
msg.setNeighbour(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.EdgeProto.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.EdgeProto.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.EdgeProto} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.EdgeProto.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getStartx();
if (f !== 0) {
writer.writeInt32(
1,
f
);
}
f = message.getStarty();
if (f !== 0) {
writer.writeInt32(
2,
f
);
}
f = message.getEndx();
if (f !== 0) {
writer.writeInt32(
3,
f
);
}
f = message.getEndy();
if (f !== 0) {
writer.writeInt32(
4,
f
);
}
f = message.getNeighbour();
if (f !== 0) {
writer.writeInt32(
5,
f
);
}
};
/**
* optional int32 startX = 1;
* @return {number}
*/
proto.EdgeProto.prototype.getStartx = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.EdgeProto} returns this
*/
proto.EdgeProto.prototype.setStartx = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional int32 startY = 2;
* @return {number}
*/
proto.EdgeProto.prototype.getStarty = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {number} value
* @return {!proto.EdgeProto} returns this
*/
proto.EdgeProto.prototype.setStarty = function(value) {
return jspb.Message.setProto3IntField(this, 2, value);
};
/**
* optional int32 endX = 3;
* @return {number}
*/
proto.EdgeProto.prototype.getEndx = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/**
* @param {number} value
* @return {!proto.EdgeProto} returns this
*/
proto.EdgeProto.prototype.setEndx = function(value) {
return jspb.Message.setProto3IntField(this, 3, value);
};
/**
* optional int32 endY = 4;
* @return {number}
*/
proto.EdgeProto.prototype.getEndy = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/**
* @param {number} value
* @return {!proto.EdgeProto} returns this
*/
proto.EdgeProto.prototype.setEndy = function(value) {
return jspb.Message.setProto3IntField(this, 4, value);
};
/**
* optional int32 neighbour = 5;
* @return {number}
*/
proto.EdgeProto.prototype.getNeighbour = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
};
/**
* @param {number} value
* @return {!proto.EdgeProto} returns this
*/
proto.EdgeProto.prototype.setNeighbour = function(value) {
return jspb.Message.setProto3IntField(this, 5, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.ChangeSetProto.repeatedFields_ = [1,2];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.ChangeSetProto.prototype.toObject = function(opt_includeInstance) {
return proto.ChangeSetProto.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.ChangeSetProto} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ChangeSetProto.toObject = function(includeInstance, msg) {
var f, obj = {
changesList: jspb.Message.toObjectList(msg.getChangesList(),
proto.ChangeSetProto.EntityChangeProto.toObject, includeInstance),
deletesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : 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.ChangeSetProto}
*/
proto.ChangeSetProto.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.ChangeSetProto;
return proto.ChangeSetProto.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ChangeSetProto} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ChangeSetProto}
*/
proto.ChangeSetProto.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.ChangeSetProto.EntityChangeProto;
reader.readMessage(value,proto.ChangeSetProto.EntityChangeProto.deserializeBinaryFromReader);
msg.addChanges(value);
break;
case 2:
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
for (var i = 0; i < values.length; i++) {
msg.addDeletes(values[i]);
}
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.ChangeSetProto.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.ChangeSetProto.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.ChangeSetProto} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ChangeSetProto.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getChangesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
proto.ChangeSetProto.EntityChangeProto.serializeBinaryToWriter
);
}
f = message.getDeletesList();
if (f.length > 0) {
writer.writePackedInt32(
2,
f
);
}
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.ChangeSetProto.EntityChangeProto.repeatedFields_ = [3];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.ChangeSetProto.EntityChangeProto.prototype.toObject = function(opt_includeInstance) {
return proto.ChangeSetProto.EntityChangeProto.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.ChangeSetProto.EntityChangeProto} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ChangeSetProto.EntityChangeProto.toObject = function(includeInstance, msg) {
var f, obj = {
entityid: jspb.Message.getFieldWithDefault(msg, 1, 0),
urn: jspb.Message.getFieldWithDefault(msg, 2, 0),
propertiesList: jspb.Message.toObjectList(msg.getPropertiesList(),
proto.PropertyProto.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.ChangeSetProto.EntityChangeProto}
*/
proto.ChangeSetProto.EntityChangeProto.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.ChangeSetProto.EntityChangeProto;
return proto.ChangeSetProto.EntityChangeProto.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ChangeSetProto.EntityChangeProto} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ChangeSetProto.EntityChangeProto}
*/
proto.ChangeSetProto.EntityChangeProto.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt32());
msg.setEntityid(value);
break;
case 2:
var value = /** @type {number} */ (reader.readInt32());
msg.setUrn(value);
break;
case 3:
var value = new proto.PropertyProto;
reader.readMessage(value,proto.PropertyProto.deserializeBinaryFromReader);
msg.addProperties(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.ChangeSetProto.EntityChangeProto.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.ChangeSetProto.EntityChangeProto.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.ChangeSetProto.EntityChangeProto} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ChangeSetProto.EntityChangeProto.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getEntityid();
if (f !== 0) {
writer.writeInt32(
1,
f
);
}
f = message.getUrn();
if (f !== 0) {
writer.writeInt32(
2,
f
);
}
f = message.getPropertiesList();
if (f.length > 0) {
writer.writeRepeatedMessage(
3,
f,
proto.PropertyProto.serializeBinaryToWriter
);
}
};
/**
* optional int32 entityID = 1;
* @return {number}
*/
proto.ChangeSetProto.EntityChangeProto.prototype.getEntityid = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.ChangeSetProto.EntityChangeProto} returns this
*/
proto.ChangeSetProto.EntityChangeProto.prototype.setEntityid = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional int32 urn = 2;
* @return {number}
*/
proto.ChangeSetProto.EntityChangeProto.prototype.getUrn = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {number} value
* @return {!proto.ChangeSetProto.EntityChangeProto} returns this
*/
proto.ChangeSetProto.EntityChangeProto.prototype.setUrn = function(value) {
return jspb.Message.setProto3IntField(this, 2, value);
};
/**
* repeated PropertyProto properties = 3;
* @return {!Array<!proto.PropertyProto>}
*/
proto.ChangeSetProto.EntityChangeProto.prototype.getPropertiesList = function() {
return /** @type{!Array<!proto.PropertyProto>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.PropertyProto, 3));
};
/**
* @param {!Array<!proto.PropertyProto>} value
* @return {!proto.ChangeSetProto.EntityChangeProto} returns this
*/
proto.ChangeSetProto.EntityChangeProto.prototype.setPropertiesList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 3, value);
};
/**
* @param {!proto.PropertyProto=} opt_value
* @param {number=} opt_index
* @return {!proto.PropertyProto}
*/
proto.ChangeSetProto.EntityChangeProto.prototype.addProperties = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.PropertyProto, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.ChangeSetProto.EntityChangeProto} returns this
*/
proto.ChangeSetProto.EntityChangeProto.prototype.clearPropertiesList = function() {
return this.setPropertiesList([]);
};
/**
* repeated EntityChangeProto changes = 1;
* @return {!Array<!proto.ChangeSetProto.EntityChangeProto>}
*/
proto.ChangeSetProto.prototype.getChangesList = function() {
return /** @type{!Array<!proto.ChangeSetProto.EntityChangeProto>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.ChangeSetProto.EntityChangeProto, 1));
};
/**
* @param {!Array<!proto.ChangeSetProto.EntityChangeProto>} value
* @return {!proto.ChangeSetProto} returns this
*/
proto.ChangeSetProto.prototype.setChangesList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.ChangeSetProto.EntityChangeProto=} opt_value
* @param {number=} opt_index
* @return {!proto.ChangeSetProto.EntityChangeProto}
*/
proto.ChangeSetProto.prototype.addChanges = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ChangeSetProto.EntityChangeProto, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.ChangeSetProto} returns this
*/
proto.ChangeSetProto.prototype.clearChangesList = function() {
return this.setChangesList([]);
};
/**
* repeated int32 deletes = 2;
* @return {!Array<number>}
*/
proto.ChangeSetProto.prototype.getDeletesList = function() {
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 2));
};
/**
* @param {!Array<number>} value
* @return {!proto.ChangeSetProto} returns this
*/
proto.ChangeSetProto.prototype.setDeletesList = function(value) {
return jspb.Message.setField(this, 2, value || []);
};
/**
* @param {number} value
* @param {number=} opt_index
* @return {!proto.ChangeSetProto} returns this
*/
proto.ChangeSetProto.prototype.addDeletes = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.ChangeSetProto} returns this
*/
proto.ChangeSetProto.prototype.clearDeletesList = function() {
return this.setDeletesList([]);
};
goog.object.extend(exports, proto);
//AutoGenerated by 'rcrs-server/scripts/platforms/compile.sh'
//Please do not modify it
const URN={
Entity: {
WORLD:0x1101,
ROAD:0x1102,
BLOCKADE:0x1103,
BUILDING:0x1104,
REFUGE:0x1105,
HYDRANT:0x1106,
GAS_STATION:0x1107,
FIRE_STATION:0x1108,
AMBULANCE_CENTRE:0x1109,
POLICE_OFFICE:0x110a,
CIVILIAN:0x110b,
FIRE_BRIGADE:0x110c,
AMBULANCE_TEAM:0x110d,
POLICE_FORCE:0x110e,
},
Property:{
START_TIME:0x1201,
LONGITUDE:0x1202,
LATITUDE:0x1203,
WIND_FORCE:0x1204,
WIND_DIRECTION:0x1205,
X:0x1206,
Y:0x1207,
BLOCKADES:0x1208,
REPAIR_COST:0x1209,
FLOORS:0x120a,
BUILDING_ATTRIBUTES:0x120b,
IGNITION:0x120c,
FIERYNESS:0x120d,
BROKENNESS:0x120e,
BUILDING_CODE:0x120f,
BUILDING_AREA_GROUND:0x1210,
BUILDING_AREA_TOTAL:0x1211,
APEXES:0x1212,
EDGES:0x1213,
POSITION:0x1214,
DIRECTION:0x1215,
POSITION_HISTORY:0x1216,
STAMINA:0x1217,
HP:0x1218,
DAMAGE:0x1219,
BURIEDNESS:0x121a,
TRAVEL_DISTANCE:0x121b,
WATER_QUANTITY:0x121c,
TEMPERATURE:0x121d,
IMPORTANCE:0x121e,
CAPACITY:0x121f,
BED_CAPACITY:0x1220,
OCCUPIED_BEDS:0x1221,
REFILL_CAPACITY:0x1222,
WAITING_LIST_SIZE:0x1223,
},
Command:{
AK_REST:0x1301,
AK_MOVE:0x1302,
AK_LOAD:0x1303,
AK_UNLOAD:0x1304,
AK_SAY:0x1305,
AK_TELL:0x1306,
AK_EXTINGUISH:0x1307,
AK_RESCUE:0x1308,
AK_CLEAR:0x1309,
AK_CLEAR_AREA:0x130a,
AK_SUBSCRIBE:0x130b,
AK_SPEAK:0x130c,
},
ComponentCommand:{
Target:0x1401,
DestinationX:0x1402,
DestinationY:0x1403,
Water:0x1404,
Path:0x1405,
Message:0x1406,
Channel:0x1407,
Channels:0x1408,
},
ControlMSG:{
KG_CONNECT:0x0101,
KG_ACKNOWLEDGE:0x0102,
GK_CONNECT_OK:0x0103,
GK_CONNECT_ERROR:0x0104,
SK_CONNECT:0x0105,
SK_ACKNOWLEDGE:0x0106,
SK_UPDATE:0x0107,
KS_CONNECT_OK:0x0108,
KS_CONNECT_ERROR:0x0109,
KS_UPDATE:0x010a,
KS_COMMANDS:0x010b,
KS_AFTERSHOCKS_INFO:0x010c,
VK_CONNECT:0x010d,
VK_ACKNOWLEDGE:0x010e,
KV_CONNECT_OK:0x010f,
KV_CONNECT_ERROR:0x0110,
KV_TIMESTEP:0x0111,
AK_CONNECT:0x0112,
AK_ACKNOWLEDGE:0x0113,
KA_CONNECT_OK:0x0114,
KA_CONNECT_ERROR:0x0115,
KA_SENSE:0x0116,
SHUTDOWN:0x0117,
ENTITY_ID_REQUEST:0x0118,
ENTITY_ID_RESPONSE:0x0119,
},
ComponentControlMSG:{
RequestID:0x0201,
AgentID:0x0202,
Version:0x0203,
Name:0x0204,
RequestedEntityTypes:0x0205,
SimulatorID:0x0206,
RequestNumber:0x0207,
NumberOfIDs:0x0208,
NewEntityIDs:0x0209,
Reason:0x020a,
Entities:0x020b,
ViewerID:0x020c,
AgentConfig:0x020d,
Time:0x020e,
Updates:0x020f,
Hearing:0x0210,
INTENSITIES:0x0211,
TIMES:0x0212,
ID:0x0213,
Commands:0x0214,
SimulatorConfig:0x0215,
Changes:0x0216,
}
}
URN.MAP=Object.assign({},...Object.keys(URN.Entity).map(p=>({[URN.Entity[p]]:p})),...Object.keys(URN.Property).map(p=>({[URN.Property[p]]:p})),...Object.keys(URN.Command).map(p=>({[URN.Command[p]]:p})),...Object.keys(URN.ComponentCommand).map(p=>({[URN.ComponentCommand[p]]:p})),...Object.keys(URN.ControlMSG).map(p=>({[URN.ControlMSG[p]]:p})),...Object.keys(URN.ComponentControlMSG).map(p=>({[URN.ComponentControlMSG[p]]:p})))
\ No newline at end of file
{
"dependencies": {
"browserify": "^17.0.0",
"google-protobuf": "^3.19.1"
}
}
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: RCRSLogProto.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
import RCRSProto_pb2 as RCRSProto__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='RCRSLogProto.proto',
package='',
syntax='proto3',
serialized_options=b'\n\035rescuecore2.messages.protobufB\014RCRSLogProto',
create_key=_descriptor._internal_create_key,
serialized_pb=b'\n\x12RCRSLogProto.proto\x1a\x0fRCRSProto.proto\"\x9e\x02\n\x08LogProto\x12\x1f\n\x05start\x18\x01 \x01(\x0b\x32\x0e.StartLogProtoH\x00\x12\x36\n\x10initialCondition\x18\x02 \x01(\x0b\x32\x1a.InitialConditionsLogProtoH\x00\x12#\n\x07\x63ommand\x18\x03 \x01(\x0b\x32\x10.CommandLogProtoH\x00\x12)\n\nperception\x18\x04 \x01(\x0b\x32\x13.PerceptionLogProtoH\x00\x12!\n\x06\x63onfig\x18\x05 \x01(\x0b\x32\x0f.ConfigLogProtoH\x00\x12\"\n\x06update\x18\x06 \x01(\x0b\x32\x10.UpdatesLogProtoH\x00\x12\x1b\n\x03\x65nd\x18\x07 \x01(\x0b\x32\x0c.EndLogProtoH\x00\x42\x05\n\x03log\"\x0f\n\rStartLogProto\";\n\x19InitialConditionsLogProto\x12\x1e\n\x08\x65ntities\x18\x01 \x03(\x0b\x32\x0c.EntityProto\"@\n\x0f\x43ommandLogProto\x12\x0c\n\x04time\x18\x01 \x01(\x05\x12\x1f\n\x08\x63ommands\x18\x02 \x03(\x0b\x32\r.MessageProto\"}\n\x12PerceptionLogProto\x12\x0c\n\x04time\x18\x01 \x01(\x05\x12\x10\n\x08\x65ntityID\x18\x02 \x01(\x05\x12 \n\x07visible\x18\x03 \x01(\x0b\x32\x0f.ChangeSetProto\x12%\n\x0e\x63ommunications\x18\x04 \x03(\x0b\x32\r.MessageProto\".\n\x0e\x43onfigLogProto\x12\x1c\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x0c.ConfigProto\"A\n\x0fUpdatesLogProto\x12\x0c\n\x04time\x18\x01 \x01(\x05\x12 \n\x07\x63hanges\x18\x02 \x01(\x0b\x32\x0f.ChangeSetProto\"\r\n\x0b\x45ndLogProtoB-\n\x1drescuecore2.messages.protobufB\x0cRCRSLogProtob\x06proto3'
,
dependencies=[RCRSProto__pb2.DESCRIPTOR,])
_LOGPROTO = _descriptor.Descriptor(
name='LogProto',
full_name='LogProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='start', full_name='LogProto.start', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='initialCondition', full_name='LogProto.initialCondition', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='command', full_name='LogProto.command', index=2,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='perception', full_name='LogProto.perception', index=3,
number=4, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='config', full_name='LogProto.config', index=4,
number=5, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='update', full_name='LogProto.update', index=5,
number=6, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='end', full_name='LogProto.end', index=6,
number=7, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
_descriptor.OneofDescriptor(
name='log', full_name='LogProto.log',
index=0, containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[]),
],
serialized_start=40,
serialized_end=326,
)
_STARTLOGPROTO = _descriptor.Descriptor(
name='StartLogProto',
full_name='StartLogProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=328,
serialized_end=343,
)
_INITIALCONDITIONSLOGPROTO = _descriptor.Descriptor(
name='InitialConditionsLogProto',
full_name='InitialConditionsLogProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='entities', full_name='InitialConditionsLogProto.entities', index=0,
number=1, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=345,
serialized_end=404,
)
_COMMANDLOGPROTO = _descriptor.Descriptor(
name='CommandLogProto',
full_name='CommandLogProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='time', full_name='CommandLogProto.time', index=0,
number=1, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='commands', full_name='CommandLogProto.commands', index=1,
number=2, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=406,
serialized_end=470,
)
_PERCEPTIONLOGPROTO = _descriptor.Descriptor(
name='PerceptionLogProto',
full_name='PerceptionLogProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='time', full_name='PerceptionLogProto.time', index=0,
number=1, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='entityID', full_name='PerceptionLogProto.entityID', index=1,
number=2, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='visible', full_name='PerceptionLogProto.visible', index=2,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='communications', full_name='PerceptionLogProto.communications', index=3,
number=4, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=472,
serialized_end=597,
)
_CONFIGLOGPROTO = _descriptor.Descriptor(
name='ConfigLogProto',
full_name='ConfigLogProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='config', full_name='ConfigLogProto.config', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=599,
serialized_end=645,
)
_UPDATESLOGPROTO = _descriptor.Descriptor(
name='UpdatesLogProto',
full_name='UpdatesLogProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='time', full_name='UpdatesLogProto.time', index=0,
number=1, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='changes', full_name='UpdatesLogProto.changes', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=647,
serialized_end=712,
)
_ENDLOGPROTO = _descriptor.Descriptor(
name='EndLogProto',
full_name='EndLogProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=714,
serialized_end=727,
)
_LOGPROTO.fields_by_name['start'].message_type = _STARTLOGPROTO
_LOGPROTO.fields_by_name['initialCondition'].message_type = _INITIALCONDITIONSLOGPROTO
_LOGPROTO.fields_by_name['command'].message_type = _COMMANDLOGPROTO
_LOGPROTO.fields_by_name['perception'].message_type = _PERCEPTIONLOGPROTO
_LOGPROTO.fields_by_name['config'].message_type = _CONFIGLOGPROTO
_LOGPROTO.fields_by_name['update'].message_type = _UPDATESLOGPROTO
_LOGPROTO.fields_by_name['end'].message_type = _ENDLOGPROTO
_LOGPROTO.oneofs_by_name['log'].fields.append(
_LOGPROTO.fields_by_name['start'])
_LOGPROTO.fields_by_name['start'].containing_oneof = _LOGPROTO.oneofs_by_name['log']
_LOGPROTO.oneofs_by_name['log'].fields.append(
_LOGPROTO.fields_by_name['initialCondition'])
_LOGPROTO.fields_by_name['initialCondition'].containing_oneof = _LOGPROTO.oneofs_by_name['log']
_LOGPROTO.oneofs_by_name['log'].fields.append(
_LOGPROTO.fields_by_name['command'])
_LOGPROTO.fields_by_name['command'].containing_oneof = _LOGPROTO.oneofs_by_name['log']
_LOGPROTO.oneofs_by_name['log'].fields.append(
_LOGPROTO.fields_by_name['perception'])
_LOGPROTO.fields_by_name['perception'].containing_oneof = _LOGPROTO.oneofs_by_name['log']
_LOGPROTO.oneofs_by_name['log'].fields.append(
_LOGPROTO.fields_by_name['config'])
_LOGPROTO.fields_by_name['config'].containing_oneof = _LOGPROTO.oneofs_by_name['log']
_LOGPROTO.oneofs_by_name['log'].fields.append(
_LOGPROTO.fields_by_name['update'])
_LOGPROTO.fields_by_name['update'].containing_oneof = _LOGPROTO.oneofs_by_name['log']
_LOGPROTO.oneofs_by_name['log'].fields.append(
_LOGPROTO.fields_by_name['end'])
_LOGPROTO.fields_by_name['end'].containing_oneof = _LOGPROTO.oneofs_by_name['log']
_INITIALCONDITIONSLOGPROTO.fields_by_name['entities'].message_type = RCRSProto__pb2._ENTITYPROTO
_COMMANDLOGPROTO.fields_by_name['commands'].message_type = RCRSProto__pb2._MESSAGEPROTO
_PERCEPTIONLOGPROTO.fields_by_name['visible'].message_type = RCRSProto__pb2._CHANGESETPROTO
_PERCEPTIONLOGPROTO.fields_by_name['communications'].message_type = RCRSProto__pb2._MESSAGEPROTO
_CONFIGLOGPROTO.fields_by_name['config'].message_type = RCRSProto__pb2._CONFIGPROTO
_UPDATESLOGPROTO.fields_by_name['changes'].message_type = RCRSProto__pb2._CHANGESETPROTO
DESCRIPTOR.message_types_by_name['LogProto'] = _LOGPROTO
DESCRIPTOR.message_types_by_name['StartLogProto'] = _STARTLOGPROTO
DESCRIPTOR.message_types_by_name['InitialConditionsLogProto'] = _INITIALCONDITIONSLOGPROTO
DESCRIPTOR.message_types_by_name['CommandLogProto'] = _COMMANDLOGPROTO
DESCRIPTOR.message_types_by_name['PerceptionLogProto'] = _PERCEPTIONLOGPROTO
DESCRIPTOR.message_types_by_name['ConfigLogProto'] = _CONFIGLOGPROTO
DESCRIPTOR.message_types_by_name['UpdatesLogProto'] = _UPDATESLOGPROTO
DESCRIPTOR.message_types_by_name['EndLogProto'] = _ENDLOGPROTO
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
LogProto = _reflection.GeneratedProtocolMessageType('LogProto', (_message.Message,), {
'DESCRIPTOR' : _LOGPROTO,
'__module__' : 'RCRSLogProto_pb2'
# @@protoc_insertion_point(class_scope:LogProto)
})
_sym_db.RegisterMessage(LogProto)
StartLogProto = _reflection.GeneratedProtocolMessageType('StartLogProto', (_message.Message,), {
'DESCRIPTOR' : _STARTLOGPROTO,
'__module__' : 'RCRSLogProto_pb2'
# @@protoc_insertion_point(class_scope:StartLogProto)
})
_sym_db.RegisterMessage(StartLogProto)
InitialConditionsLogProto = _reflection.GeneratedProtocolMessageType('InitialConditionsLogProto', (_message.Message,), {
'DESCRIPTOR' : _INITIALCONDITIONSLOGPROTO,
'__module__' : 'RCRSLogProto_pb2'
# @@protoc_insertion_point(class_scope:InitialConditionsLogProto)
})
_sym_db.RegisterMessage(InitialConditionsLogProto)
CommandLogProto = _reflection.GeneratedProtocolMessageType('CommandLogProto', (_message.Message,), {
'DESCRIPTOR' : _COMMANDLOGPROTO,
'__module__' : 'RCRSLogProto_pb2'
# @@protoc_insertion_point(class_scope:CommandLogProto)
})
_sym_db.RegisterMessage(CommandLogProto)
PerceptionLogProto = _reflection.GeneratedProtocolMessageType('PerceptionLogProto', (_message.Message,), {
'DESCRIPTOR' : _PERCEPTIONLOGPROTO,
'__module__' : 'RCRSLogProto_pb2'
# @@protoc_insertion_point(class_scope:PerceptionLogProto)
})
_sym_db.RegisterMessage(PerceptionLogProto)
ConfigLogProto = _reflection.GeneratedProtocolMessageType('ConfigLogProto', (_message.Message,), {
'DESCRIPTOR' : _CONFIGLOGPROTO,
'__module__' : 'RCRSLogProto_pb2'
# @@protoc_insertion_point(class_scope:ConfigLogProto)
})
_sym_db.RegisterMessage(ConfigLogProto)
UpdatesLogProto = _reflection.GeneratedProtocolMessageType('UpdatesLogProto', (_message.Message,), {
'DESCRIPTOR' : _UPDATESLOGPROTO,
'__module__' : 'RCRSLogProto_pb2'
# @@protoc_insertion_point(class_scope:UpdatesLogProto)
})
_sym_db.RegisterMessage(UpdatesLogProto)
EndLogProto = _reflection.GeneratedProtocolMessageType('EndLogProto', (_message.Message,), {
'DESCRIPTOR' : _ENDLOGPROTO,
'__module__' : 'RCRSLogProto_pb2'
# @@protoc_insertion_point(class_scope:EndLogProto)
})
_sym_db.RegisterMessage(EndLogProto)
DESCRIPTOR._options = None
# @@protoc_insertion_point(module_scope)
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: RCRSProto.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor.FileDescriptor(
name='RCRSProto.proto',
package='',
syntax='proto3',
serialized_options=b'\n\035rescuecore2.messages.protobufB\tRCRSProto',
create_key=_descriptor._internal_create_key,
serialized_pb=b'\n\x0fRCRSProto.proto\"\x99\x01\n\x0cMessageProto\x12\x0b\n\x03urn\x18\x01 \x01(\x05\x12\x31\n\ncomponents\x18\x02 \x03(\x0b\x32\x1d.MessageProto.ComponentsEntry\x1aI\n\x0f\x43omponentsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.MessageComponentProto:\x02\x38\x01\"3\n\x10MessageListProto\x12\x1f\n\x08\x63ommands\x18\x01 \x03(\x0b\x32\r.MessageProto\"\xc2\x03\n\x15MessageComponentProto\x12$\n\tchangeSet\x18\x01 \x01(\x0b\x32\x0f.ChangeSetProtoH\x00\x12(\n\x0b\x63ommandList\x18\x02 \x01(\x0b\x32\x11.MessageListProtoH\x00\x12\x1e\n\x06\x63onfig\x18\x03 \x01(\x0b\x32\x0c.ConfigProtoH\x00\x12\x1e\n\x06\x65ntity\x18\x04 \x01(\x0b\x32\x0c.EntityProtoH\x00\x12\x12\n\x08\x65ntityID\x18\x05 \x01(\x05H\x00\x12%\n\x0c\x65ntityIDList\x18\x06 \x01(\x0b\x32\r.IntListProtoH\x00\x12&\n\nentityList\x18\x07 \x01(\x0b\x32\x10.EntityListProtoH\x00\x12$\n\tfloatList\x18\x08 \x01(\x0b\x32\x0f.FloatListProtoH\x00\x12\x12\n\x08intValue\x18\t \x01(\x05H\x00\x12 \n\x07intList\x18\n \x01(\x0b\x32\r.IntListProtoH\x00\x12\x11\n\x07rawData\x18\x0b \x01(\x0cH\x00\x12\x15\n\x0bstringValue\x18\x0c \x01(\tH\x00\x12#\n\nstringList\x18\r \x01(\x0b\x32\r.StrListProtoH\x00\x42\x0b\n\tcomponent\"\x1e\n\x0cStrListProto\x12\x0e\n\x06values\x18\x01 \x03(\t\"\x1e\n\x0cIntListProto\x12\x0e\n\x06values\x18\x01 \x03(\x05\" \n\x0e\x46loatListProto\x12\x0e\n\x06values\x18\x01 \x03(\x02\"/\n\x0eIntMatrixProto\x12\x1d\n\x06values\x18\x01 \x03(\x0b\x32\r.IntListProto\"\x88\x02\n\nValueProto\x12\x0f\n\x07\x64\x65\x66ined\x18\x01 \x01(\x08\x12\x12\n\x08intValue\x18\x02 \x01(\x05H\x00\x12\x13\n\tboolValue\x18\x03 \x01(\x08H\x00\x12\x15\n\x0b\x64oubleValue\x18\x04 \x01(\x01H\x00\x12\x12\n\x08\x62yteList\x18\x05 \x01(\x0cH\x00\x12 \n\x07intList\x18\x06 \x01(\x0b\x32\r.IntListProtoH\x00\x12$\n\tintMatrix\x18\x07 \x01(\x0b\x32\x0f.IntMatrixProtoH\x00\x12\"\n\x08\x65\x64geList\x18\x08 \x01(\x0b\x32\x0e.EdgeListProtoH\x00\x12 \n\x07point2D\x18\t \x01(\x0b\x32\r.Point2DProtoH\x00\x42\x07\n\x05value\"\x98\x02\n\rPropertyProto\x12\x0b\n\x03urn\x18\x01 \x01(\x05\x12\x0f\n\x07\x64\x65\x66ined\x18\x02 \x01(\x08\x12\x12\n\x08intValue\x18\x03 \x01(\x05H\x00\x12\x13\n\tboolValue\x18\x04 \x01(\x08H\x00\x12\x15\n\x0b\x64oubleValue\x18\x05 \x01(\x01H\x00\x12\x12\n\x08\x62yteList\x18\x06 \x01(\x0cH\x00\x12 \n\x07intList\x18\x07 \x01(\x0b\x32\r.IntListProtoH\x00\x12$\n\tintMatrix\x18\x08 \x01(\x0b\x32\x0f.IntMatrixProtoH\x00\x12\"\n\x08\x65\x64geList\x18\t \x01(\x0b\x32\x0e.EdgeListProtoH\x00\x12 \n\x07point2D\x18\n \x01(\x0b\x32\r.Point2DProtoH\x00\x42\x07\n\x05value\"$\n\x0cPoint2DProto\x12\t\n\x01X\x18\x01 \x01(\x01\x12\t\n\x01Y\x18\x02 \x01(\x01\"P\n\x0b\x45ntityProto\x12\x0b\n\x03urn\x18\x01 \x01(\x05\x12\x10\n\x08\x65ntityID\x18\x02 \x01(\x05\x12\"\n\nproperties\x18\x03 \x03(\x0b\x32\x0e.PropertyProto\"1\n\x0f\x45ntityListProto\x12\x1e\n\x08\x65ntities\x18\x01 \x03(\x0b\x32\x0c.EntityProto\"`\n\x0b\x43onfigProto\x12$\n\x04\x64\x61ta\x18\x01 \x03(\x0b\x32\x16.ConfigProto.DataEntry\x1a+\n\tDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"*\n\rEdgeListProto\x12\x19\n\x05\x65\x64ges\x18\x01 \x03(\x0b\x32\n.EdgeProto\"Z\n\tEdgeProto\x12\x0e\n\x06startX\x18\x01 \x01(\x05\x12\x0e\n\x06startY\x18\x02 \x01(\x05\x12\x0c\n\x04\x65ndX\x18\x03 \x01(\x05\x12\x0c\n\x04\x65ndY\x18\x04 \x01(\x05\x12\x11\n\tneighbour\x18\x05 \x01(\x05\"\xad\x01\n\x0e\x43hangeSetProto\x12\x32\n\x07\x63hanges\x18\x01 \x03(\x0b\x32!.ChangeSetProto.EntityChangeProto\x12\x0f\n\x07\x64\x65letes\x18\x02 \x03(\x05\x1aV\n\x11\x45ntityChangeProto\x12\x10\n\x08\x65ntityID\x18\x01 \x01(\x05\x12\x0b\n\x03urn\x18\x02 \x01(\x05\x12\"\n\nproperties\x18\x03 \x03(\x0b\x32\x0e.PropertyProtoB*\n\x1drescuecore2.messages.protobufB\tRCRSProtob\x06proto3'
)
_MESSAGEPROTO_COMPONENTSENTRY = _descriptor.Descriptor(
name='ComponentsEntry',
full_name='MessageProto.ComponentsEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='MessageProto.ComponentsEntry.key', index=0,
number=1, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='value', full_name='MessageProto.ComponentsEntry.value', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=b'8\001',
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=100,
serialized_end=173,
)
_MESSAGEPROTO = _descriptor.Descriptor(
name='MessageProto',
full_name='MessageProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='urn', full_name='MessageProto.urn', index=0,
number=1, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='components', full_name='MessageProto.components', index=1,
number=2, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[_MESSAGEPROTO_COMPONENTSENTRY, ],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=20,
serialized_end=173,
)
_MESSAGELISTPROTO = _descriptor.Descriptor(
name='MessageListProto',
full_name='MessageListProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='commands', full_name='MessageListProto.commands', index=0,
number=1, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=175,
serialized_end=226,
)
_MESSAGECOMPONENTPROTO = _descriptor.Descriptor(
name='MessageComponentProto',
full_name='MessageComponentProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='changeSet', full_name='MessageComponentProto.changeSet', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='commandList', full_name='MessageComponentProto.commandList', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='config', full_name='MessageComponentProto.config', index=2,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='entity', full_name='MessageComponentProto.entity', index=3,
number=4, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='entityID', full_name='MessageComponentProto.entityID', index=4,
number=5, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='entityIDList', full_name='MessageComponentProto.entityIDList', index=5,
number=6, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='entityList', full_name='MessageComponentProto.entityList', index=6,
number=7, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='floatList', full_name='MessageComponentProto.floatList', index=7,
number=8, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='intValue', full_name='MessageComponentProto.intValue', index=8,
number=9, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='intList', full_name='MessageComponentProto.intList', index=9,
number=10, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='rawData', full_name='MessageComponentProto.rawData', index=10,
number=11, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=b"",
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='stringValue', full_name='MessageComponentProto.stringValue', index=11,
number=12, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='stringList', full_name='MessageComponentProto.stringList', index=12,
number=13, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
_descriptor.OneofDescriptor(
name='component', full_name='MessageComponentProto.component',
index=0, containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[]),
],
serialized_start=229,
serialized_end=679,
)
_STRLISTPROTO = _descriptor.Descriptor(
name='StrListProto',
full_name='StrListProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='values', full_name='StrListProto.values', index=0,
number=1, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=681,
serialized_end=711,
)
_INTLISTPROTO = _descriptor.Descriptor(
name='IntListProto',
full_name='IntListProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='values', full_name='IntListProto.values', index=0,
number=1, type=5, cpp_type=1, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=713,
serialized_end=743,
)
_FLOATLISTPROTO = _descriptor.Descriptor(
name='FloatListProto',
full_name='FloatListProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='values', full_name='FloatListProto.values', index=0,
number=1, type=2, cpp_type=6, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=745,
serialized_end=777,
)
_INTMATRIXPROTO = _descriptor.Descriptor(
name='IntMatrixProto',
full_name='IntMatrixProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='values', full_name='IntMatrixProto.values', index=0,
number=1, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=779,
serialized_end=826,
)
_VALUEPROTO = _descriptor.Descriptor(
name='ValueProto',
full_name='ValueProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='defined', full_name='ValueProto.defined', index=0,
number=1, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='intValue', full_name='ValueProto.intValue', index=1,
number=2, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='boolValue', full_name='ValueProto.boolValue', index=2,
number=3, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='doubleValue', full_name='ValueProto.doubleValue', index=3,
number=4, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='byteList', full_name='ValueProto.byteList', index=4,
number=5, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=b"",
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='intList', full_name='ValueProto.intList', index=5,
number=6, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='intMatrix', full_name='ValueProto.intMatrix', index=6,
number=7, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='edgeList', full_name='ValueProto.edgeList', index=7,
number=8, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='point2D', full_name='ValueProto.point2D', index=8,
number=9, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
_descriptor.OneofDescriptor(
name='value', full_name='ValueProto.value',
index=0, containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[]),
],
serialized_start=829,
serialized_end=1093,
)
_PROPERTYPROTO = _descriptor.Descriptor(
name='PropertyProto',
full_name='PropertyProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='urn', full_name='PropertyProto.urn', index=0,
number=1, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='defined', full_name='PropertyProto.defined', index=1,
number=2, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='intValue', full_name='PropertyProto.intValue', index=2,
number=3, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='boolValue', full_name='PropertyProto.boolValue', index=3,
number=4, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='doubleValue', full_name='PropertyProto.doubleValue', index=4,
number=5, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='byteList', full_name='PropertyProto.byteList', index=5,
number=6, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=b"",
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='intList', full_name='PropertyProto.intList', index=6,
number=7, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='intMatrix', full_name='PropertyProto.intMatrix', index=7,
number=8, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='edgeList', full_name='PropertyProto.edgeList', index=8,
number=9, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='point2D', full_name='PropertyProto.point2D', index=9,
number=10, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
_descriptor.OneofDescriptor(
name='value', full_name='PropertyProto.value',
index=0, containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[]),
],
serialized_start=1096,
serialized_end=1376,
)
_POINT2DPROTO = _descriptor.Descriptor(
name='Point2DProto',
full_name='Point2DProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='X', full_name='Point2DProto.X', index=0,
number=1, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Y', full_name='Point2DProto.Y', index=1,
number=2, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1378,
serialized_end=1414,
)
_ENTITYPROTO = _descriptor.Descriptor(
name='EntityProto',
full_name='EntityProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='urn', full_name='EntityProto.urn', index=0,
number=1, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='entityID', full_name='EntityProto.entityID', index=1,
number=2, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='properties', full_name='EntityProto.properties', index=2,
number=3, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1416,
serialized_end=1496,
)
_ENTITYLISTPROTO = _descriptor.Descriptor(
name='EntityListProto',
full_name='EntityListProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='entities', full_name='EntityListProto.entities', index=0,
number=1, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1498,
serialized_end=1547,
)
_CONFIGPROTO_DATAENTRY = _descriptor.Descriptor(
name='DataEntry',
full_name='ConfigProto.DataEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='ConfigProto.DataEntry.key', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='value', full_name='ConfigProto.DataEntry.value', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=b'8\001',
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1602,
serialized_end=1645,
)
_CONFIGPROTO = _descriptor.Descriptor(
name='ConfigProto',
full_name='ConfigProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='data', full_name='ConfigProto.data', index=0,
number=1, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[_CONFIGPROTO_DATAENTRY, ],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1549,
serialized_end=1645,
)
_EDGELISTPROTO = _descriptor.Descriptor(
name='EdgeListProto',
full_name='EdgeListProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='edges', full_name='EdgeListProto.edges', index=0,
number=1, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1647,
serialized_end=1689,
)
_EDGEPROTO = _descriptor.Descriptor(
name='EdgeProto',
full_name='EdgeProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='startX', full_name='EdgeProto.startX', index=0,
number=1, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='startY', full_name='EdgeProto.startY', index=1,
number=2, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='endX', full_name='EdgeProto.endX', index=2,
number=3, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='endY', full_name='EdgeProto.endY', index=3,
number=4, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='neighbour', full_name='EdgeProto.neighbour', index=4,
number=5, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1691,
serialized_end=1781,
)
_CHANGESETPROTO_ENTITYCHANGEPROTO = _descriptor.Descriptor(
name='EntityChangeProto',
full_name='ChangeSetProto.EntityChangeProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='entityID', full_name='ChangeSetProto.EntityChangeProto.entityID', index=0,
number=1, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='urn', full_name='ChangeSetProto.EntityChangeProto.urn', index=1,
number=2, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='properties', full_name='ChangeSetProto.EntityChangeProto.properties', index=2,
number=3, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1871,
serialized_end=1957,
)
_CHANGESETPROTO = _descriptor.Descriptor(
name='ChangeSetProto',
full_name='ChangeSetProto',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='changes', full_name='ChangeSetProto.changes', index=0,
number=1, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='deletes', full_name='ChangeSetProto.deletes', index=1,
number=2, type=5, cpp_type=1, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[_CHANGESETPROTO_ENTITYCHANGEPROTO, ],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1784,
serialized_end=1957,
)
_MESSAGEPROTO_COMPONENTSENTRY.fields_by_name['value'].message_type = _MESSAGECOMPONENTPROTO
_MESSAGEPROTO_COMPONENTSENTRY.containing_type = _MESSAGEPROTO
_MESSAGEPROTO.fields_by_name['components'].message_type = _MESSAGEPROTO_COMPONENTSENTRY
_MESSAGELISTPROTO.fields_by_name['commands'].message_type = _MESSAGEPROTO
_MESSAGECOMPONENTPROTO.fields_by_name['changeSet'].message_type = _CHANGESETPROTO
_MESSAGECOMPONENTPROTO.fields_by_name['commandList'].message_type = _MESSAGELISTPROTO
_MESSAGECOMPONENTPROTO.fields_by_name['config'].message_type = _CONFIGPROTO
_MESSAGECOMPONENTPROTO.fields_by_name['entity'].message_type = _ENTITYPROTO
_MESSAGECOMPONENTPROTO.fields_by_name['entityIDList'].message_type = _INTLISTPROTO
_MESSAGECOMPONENTPROTO.fields_by_name['entityList'].message_type = _ENTITYLISTPROTO
_MESSAGECOMPONENTPROTO.fields_by_name['floatList'].message_type = _FLOATLISTPROTO
_MESSAGECOMPONENTPROTO.fields_by_name['intList'].message_type = _INTLISTPROTO
_MESSAGECOMPONENTPROTO.fields_by_name['stringList'].message_type = _STRLISTPROTO
_MESSAGECOMPONENTPROTO.oneofs_by_name['component'].fields.append(
_MESSAGECOMPONENTPROTO.fields_by_name['changeSet'])
_MESSAGECOMPONENTPROTO.fields_by_name['changeSet'].containing_oneof = _MESSAGECOMPONENTPROTO.oneofs_by_name['component']
_MESSAGECOMPONENTPROTO.oneofs_by_name['component'].fields.append(
_MESSAGECOMPONENTPROTO.fields_by_name['commandList'])
_MESSAGECOMPONENTPROTO.fields_by_name['commandList'].containing_oneof = _MESSAGECOMPONENTPROTO.oneofs_by_name['component']
_MESSAGECOMPONENTPROTO.oneofs_by_name['component'].fields.append(
_MESSAGECOMPONENTPROTO.fields_by_name['config'])
_MESSAGECOMPONENTPROTO.fields_by_name['config'].containing_oneof = _MESSAGECOMPONENTPROTO.oneofs_by_name['component']
_MESSAGECOMPONENTPROTO.oneofs_by_name['component'].fields.append(
_MESSAGECOMPONENTPROTO.fields_by_name['entity'])
_MESSAGECOMPONENTPROTO.fields_by_name['entity'].containing_oneof = _MESSAGECOMPONENTPROTO.oneofs_by_name['component']
_MESSAGECOMPONENTPROTO.oneofs_by_name['component'].fields.append(
_MESSAGECOMPONENTPROTO.fields_by_name['entityID'])
_MESSAGECOMPONENTPROTO.fields_by_name['entityID'].containing_oneof = _MESSAGECOMPONENTPROTO.oneofs_by_name['component']
_MESSAGECOMPONENTPROTO.oneofs_by_name['component'].fields.append(
_MESSAGECOMPONENTPROTO.fields_by_name['entityIDList'])
_MESSAGECOMPONENTPROTO.fields_by_name['entityIDList'].containing_oneof = _MESSAGECOMPONENTPROTO.oneofs_by_name['component']
_MESSAGECOMPONENTPROTO.oneofs_by_name['component'].fields.append(
_MESSAGECOMPONENTPROTO.fields_by_name['entityList'])
_MESSAGECOMPONENTPROTO.fields_by_name['entityList'].containing_oneof = _MESSAGECOMPONENTPROTO.oneofs_by_name['component']
_MESSAGECOMPONENTPROTO.oneofs_by_name['component'].fields.append(
_MESSAGECOMPONENTPROTO.fields_by_name['floatList'])
_MESSAGECOMPONENTPROTO.fields_by_name['floatList'].containing_oneof = _MESSAGECOMPONENTPROTO.oneofs_by_name['component']
_MESSAGECOMPONENTPROTO.oneofs_by_name['component'].fields.append(
_MESSAGECOMPONENTPROTO.fields_by_name['intValue'])
_MESSAGECOMPONENTPROTO.fields_by_name['intValue'].containing_oneof = _MESSAGECOMPONENTPROTO.oneofs_by_name['component']
_MESSAGECOMPONENTPROTO.oneofs_by_name['component'].fields.append(
_MESSAGECOMPONENTPROTO.fields_by_name['intList'])
_MESSAGECOMPONENTPROTO.fields_by_name['intList'].containing_oneof = _MESSAGECOMPONENTPROTO.oneofs_by_name['component']
_MESSAGECOMPONENTPROTO.oneofs_by_name['component'].fields.append(
_MESSAGECOMPONENTPROTO.fields_by_name['rawData'])
_MESSAGECOMPONENTPROTO.fields_by_name['rawData'].containing_oneof = _MESSAGECOMPONENTPROTO.oneofs_by_name['component']
_MESSAGECOMPONENTPROTO.oneofs_by_name['component'].fields.append(
_MESSAGECOMPONENTPROTO.fields_by_name['stringValue'])
_MESSAGECOMPONENTPROTO.fields_by_name['stringValue'].containing_oneof = _MESSAGECOMPONENTPROTO.oneofs_by_name['component']
_MESSAGECOMPONENTPROTO.oneofs_by_name['component'].fields.append(
_MESSAGECOMPONENTPROTO.fields_by_name['stringList'])
_MESSAGECOMPONENTPROTO.fields_by_name['stringList'].containing_oneof = _MESSAGECOMPONENTPROTO.oneofs_by_name['component']
_INTMATRIXPROTO.fields_by_name['values'].message_type = _INTLISTPROTO
_VALUEPROTO.fields_by_name['intList'].message_type = _INTLISTPROTO
_VALUEPROTO.fields_by_name['intMatrix'].message_type = _INTMATRIXPROTO
_VALUEPROTO.fields_by_name['edgeList'].message_type = _EDGELISTPROTO
_VALUEPROTO.fields_by_name['point2D'].message_type = _POINT2DPROTO
_VALUEPROTO.oneofs_by_name['value'].fields.append(
_VALUEPROTO.fields_by_name['intValue'])
_VALUEPROTO.fields_by_name['intValue'].containing_oneof = _VALUEPROTO.oneofs_by_name['value']
_VALUEPROTO.oneofs_by_name['value'].fields.append(
_VALUEPROTO.fields_by_name['boolValue'])
_VALUEPROTO.fields_by_name['boolValue'].containing_oneof = _VALUEPROTO.oneofs_by_name['value']
_VALUEPROTO.oneofs_by_name['value'].fields.append(
_VALUEPROTO.fields_by_name['doubleValue'])
_VALUEPROTO.fields_by_name['doubleValue'].containing_oneof = _VALUEPROTO.oneofs_by_name['value']
_VALUEPROTO.oneofs_by_name['value'].fields.append(
_VALUEPROTO.fields_by_name['byteList'])
_VALUEPROTO.fields_by_name['byteList'].containing_oneof = _VALUEPROTO.oneofs_by_name['value']
_VALUEPROTO.oneofs_by_name['value'].fields.append(
_VALUEPROTO.fields_by_name['intList'])
_VALUEPROTO.fields_by_name['intList'].containing_oneof = _VALUEPROTO.oneofs_by_name['value']
_VALUEPROTO.oneofs_by_name['value'].fields.append(
_VALUEPROTO.fields_by_name['intMatrix'])
_VALUEPROTO.fields_by_name['intMatrix'].containing_oneof = _VALUEPROTO.oneofs_by_name['value']
_VALUEPROTO.oneofs_by_name['value'].fields.append(
_VALUEPROTO.fields_by_name['edgeList'])
_VALUEPROTO.fields_by_name['edgeList'].containing_oneof = _VALUEPROTO.oneofs_by_name['value']
_VALUEPROTO.oneofs_by_name['value'].fields.append(
_VALUEPROTO.fields_by_name['point2D'])
_VALUEPROTO.fields_by_name['point2D'].containing_oneof = _VALUEPROTO.oneofs_by_name['value']
_PROPERTYPROTO.fields_by_name['intList'].message_type = _INTLISTPROTO
_PROPERTYPROTO.fields_by_name['intMatrix'].message_type = _INTMATRIXPROTO
_PROPERTYPROTO.fields_by_name['edgeList'].message_type = _EDGELISTPROTO
_PROPERTYPROTO.fields_by_name['point2D'].message_type = _POINT2DPROTO
_PROPERTYPROTO.oneofs_by_name['value'].fields.append(
_PROPERTYPROTO.fields_by_name['intValue'])
_PROPERTYPROTO.fields_by_name['intValue'].containing_oneof = _PROPERTYPROTO.oneofs_by_name['value']
_PROPERTYPROTO.oneofs_by_name['value'].fields.append(
_PROPERTYPROTO.fields_by_name['boolValue'])
_PROPERTYPROTO.fields_by_name['boolValue'].containing_oneof = _PROPERTYPROTO.oneofs_by_name['value']
_PROPERTYPROTO.oneofs_by_name['value'].fields.append(
_PROPERTYPROTO.fields_by_name['doubleValue'])
_PROPERTYPROTO.fields_by_name['doubleValue'].containing_oneof = _PROPERTYPROTO.oneofs_by_name['value']
_PROPERTYPROTO.oneofs_by_name['value'].fields.append(
_PROPERTYPROTO.fields_by_name['byteList'])
_PROPERTYPROTO.fields_by_name['byteList'].containing_oneof = _PROPERTYPROTO.oneofs_by_name['value']
_PROPERTYPROTO.oneofs_by_name['value'].fields.append(
_PROPERTYPROTO.fields_by_name['intList'])
_PROPERTYPROTO.fields_by_name['intList'].containing_oneof = _PROPERTYPROTO.oneofs_by_name['value']
_PROPERTYPROTO.oneofs_by_name['value'].fields.append(
_PROPERTYPROTO.fields_by_name['intMatrix'])
_PROPERTYPROTO.fields_by_name['intMatrix'].containing_oneof = _PROPERTYPROTO.oneofs_by_name['value']
_PROPERTYPROTO.oneofs_by_name['value'].fields.append(
_PROPERTYPROTO.fields_by_name['edgeList'])
_PROPERTYPROTO.fields_by_name['edgeList'].containing_oneof = _PROPERTYPROTO.oneofs_by_name['value']
_PROPERTYPROTO.oneofs_by_name['value'].fields.append(
_PROPERTYPROTO.fields_by_name['point2D'])
_PROPERTYPROTO.fields_by_name['point2D'].containing_oneof = _PROPERTYPROTO.oneofs_by_name['value']
_ENTITYPROTO.fields_by_name['properties'].message_type = _PROPERTYPROTO
_ENTITYLISTPROTO.fields_by_name['entities'].message_type = _ENTITYPROTO
_CONFIGPROTO_DATAENTRY.containing_type = _CONFIGPROTO
_CONFIGPROTO.fields_by_name['data'].message_type = _CONFIGPROTO_DATAENTRY
_EDGELISTPROTO.fields_by_name['edges'].message_type = _EDGEPROTO
_CHANGESETPROTO_ENTITYCHANGEPROTO.fields_by_name['properties'].message_type = _PROPERTYPROTO
_CHANGESETPROTO_ENTITYCHANGEPROTO.containing_type = _CHANGESETPROTO
_CHANGESETPROTO.fields_by_name['changes'].message_type = _CHANGESETPROTO_ENTITYCHANGEPROTO
DESCRIPTOR.message_types_by_name['MessageProto'] = _MESSAGEPROTO
DESCRIPTOR.message_types_by_name['MessageListProto'] = _MESSAGELISTPROTO
DESCRIPTOR.message_types_by_name['MessageComponentProto'] = _MESSAGECOMPONENTPROTO
DESCRIPTOR.message_types_by_name['StrListProto'] = _STRLISTPROTO
DESCRIPTOR.message_types_by_name['IntListProto'] = _INTLISTPROTO
DESCRIPTOR.message_types_by_name['FloatListProto'] = _FLOATLISTPROTO
DESCRIPTOR.message_types_by_name['IntMatrixProto'] = _INTMATRIXPROTO
DESCRIPTOR.message_types_by_name['ValueProto'] = _VALUEPROTO
DESCRIPTOR.message_types_by_name['PropertyProto'] = _PROPERTYPROTO
DESCRIPTOR.message_types_by_name['Point2DProto'] = _POINT2DPROTO
DESCRIPTOR.message_types_by_name['EntityProto'] = _ENTITYPROTO
DESCRIPTOR.message_types_by_name['EntityListProto'] = _ENTITYLISTPROTO
DESCRIPTOR.message_types_by_name['ConfigProto'] = _CONFIGPROTO
DESCRIPTOR.message_types_by_name['EdgeListProto'] = _EDGELISTPROTO
DESCRIPTOR.message_types_by_name['EdgeProto'] = _EDGEPROTO
DESCRIPTOR.message_types_by_name['ChangeSetProto'] = _CHANGESETPROTO
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
MessageProto = _reflection.GeneratedProtocolMessageType('MessageProto', (_message.Message,), {
'ComponentsEntry' : _reflection.GeneratedProtocolMessageType('ComponentsEntry', (_message.Message,), {
'DESCRIPTOR' : _MESSAGEPROTO_COMPONENTSENTRY,
'__module__' : 'RCRSProto_pb2'
# @@protoc_insertion_point(class_scope:MessageProto.ComponentsEntry)
})
,
'DESCRIPTOR' : _MESSAGEPROTO,
'__module__' : 'RCRSProto_pb2'
# @@protoc_insertion_point(class_scope:MessageProto)
})
_sym_db.RegisterMessage(MessageProto)
_sym_db.RegisterMessage(MessageProto.ComponentsEntry)
MessageListProto = _reflection.GeneratedProtocolMessageType('MessageListProto', (_message.Message,), {
'DESCRIPTOR' : _MESSAGELISTPROTO,
'__module__' : 'RCRSProto_pb2'
# @@protoc_insertion_point(class_scope:MessageListProto)
})
_sym_db.RegisterMessage(MessageListProto)
MessageComponentProto = _reflection.GeneratedProtocolMessageType('MessageComponentProto', (_message.Message,), {
'DESCRIPTOR' : _MESSAGECOMPONENTPROTO,
'__module__' : 'RCRSProto_pb2'
# @@protoc_insertion_point(class_scope:MessageComponentProto)
})
_sym_db.RegisterMessage(MessageComponentProto)
StrListProto = _reflection.GeneratedProtocolMessageType('StrListProto', (_message.Message,), {
'DESCRIPTOR' : _STRLISTPROTO,
'__module__' : 'RCRSProto_pb2'
# @@protoc_insertion_point(class_scope:StrListProto)
})
_sym_db.RegisterMessage(StrListProto)
IntListProto = _reflection.GeneratedProtocolMessageType('IntListProto', (_message.Message,), {
'DESCRIPTOR' : _INTLISTPROTO,
'__module__' : 'RCRSProto_pb2'
# @@protoc_insertion_point(class_scope:IntListProto)
})
_sym_db.RegisterMessage(IntListProto)
FloatListProto = _reflection.GeneratedProtocolMessageType('FloatListProto', (_message.Message,), {
'DESCRIPTOR' : _FLOATLISTPROTO,
'__module__' : 'RCRSProto_pb2'
# @@protoc_insertion_point(class_scope:FloatListProto)
})
_sym_db.RegisterMessage(FloatListProto)
IntMatrixProto = _reflection.GeneratedProtocolMessageType('IntMatrixProto', (_message.Message,), {
'DESCRIPTOR' : _INTMATRIXPROTO,
'__module__' : 'RCRSProto_pb2'
# @@protoc_insertion_point(class_scope:IntMatrixProto)
})
_sym_db.RegisterMessage(IntMatrixProto)
ValueProto = _reflection.GeneratedProtocolMessageType('ValueProto', (_message.Message,), {
'DESCRIPTOR' : _VALUEPROTO,
'__module__' : 'RCRSProto_pb2'
# @@protoc_insertion_point(class_scope:ValueProto)
})
_sym_db.RegisterMessage(ValueProto)
PropertyProto = _reflection.GeneratedProtocolMessageType('PropertyProto', (_message.Message,), {
'DESCRIPTOR' : _PROPERTYPROTO,
'__module__' : 'RCRSProto_pb2'
# @@protoc_insertion_point(class_scope:PropertyProto)
})
_sym_db.RegisterMessage(PropertyProto)
Point2DProto = _reflection.GeneratedProtocolMessageType('Point2DProto', (_message.Message,), {
'DESCRIPTOR' : _POINT2DPROTO,
'__module__' : 'RCRSProto_pb2'
# @@protoc_insertion_point(class_scope:Point2DProto)
})
_sym_db.RegisterMessage(Point2DProto)
EntityProto = _reflection.GeneratedProtocolMessageType('EntityProto', (_message.Message,), {
'DESCRIPTOR' : _ENTITYPROTO,
'__module__' : 'RCRSProto_pb2'
# @@protoc_insertion_point(class_scope:EntityProto)
})
_sym_db.RegisterMessage(EntityProto)
EntityListProto = _reflection.GeneratedProtocolMessageType('EntityListProto', (_message.Message,), {
'DESCRIPTOR' : _ENTITYLISTPROTO,
'__module__' : 'RCRSProto_pb2'
# @@protoc_insertion_point(class_scope:EntityListProto)
})
_sym_db.RegisterMessage(EntityListProto)
ConfigProto = _reflection.GeneratedProtocolMessageType('ConfigProto', (_message.Message,), {
'DataEntry' : _reflection.GeneratedProtocolMessageType('DataEntry', (_message.Message,), {
'DESCRIPTOR' : _CONFIGPROTO_DATAENTRY,
'__module__' : 'RCRSProto_pb2'
# @@protoc_insertion_point(class_scope:ConfigProto.DataEntry)
})
,
'DESCRIPTOR' : _CONFIGPROTO,
'__module__' : 'RCRSProto_pb2'
# @@protoc_insertion_point(class_scope:ConfigProto)
})
_sym_db.RegisterMessage(ConfigProto)
_sym_db.RegisterMessage(ConfigProto.DataEntry)
EdgeListProto = _reflection.GeneratedProtocolMessageType('EdgeListProto', (_message.Message,), {
'DESCRIPTOR' : _EDGELISTPROTO,
'__module__' : 'RCRSProto_pb2'
# @@protoc_insertion_point(class_scope:EdgeListProto)
})
_sym_db.RegisterMessage(EdgeListProto)
EdgeProto = _reflection.GeneratedProtocolMessageType('EdgeProto', (_message.Message,), {
'DESCRIPTOR' : _EDGEPROTO,
'__module__' : 'RCRSProto_pb2'
# @@protoc_insertion_point(class_scope:EdgeProto)
})
_sym_db.RegisterMessage(EdgeProto)
ChangeSetProto = _reflection.GeneratedProtocolMessageType('ChangeSetProto', (_message.Message,), {
'EntityChangeProto' : _reflection.GeneratedProtocolMessageType('EntityChangeProto', (_message.Message,), {
'DESCRIPTOR' : _CHANGESETPROTO_ENTITYCHANGEPROTO,
'__module__' : 'RCRSProto_pb2'
# @@protoc_insertion_point(class_scope:ChangeSetProto.EntityChangeProto)
})
,
'DESCRIPTOR' : _CHANGESETPROTO,
'__module__' : 'RCRSProto_pb2'
# @@protoc_insertion_point(class_scope:ChangeSetProto)
})
_sym_db.RegisterMessage(ChangeSetProto)
_sym_db.RegisterMessage(ChangeSetProto.EntityChangeProto)
DESCRIPTOR._options = None
_MESSAGEPROTO_COMPONENTSENTRY._options = None
_CONFIGPROTO_DATAENTRY._options = None
# @@protoc_insertion_point(module_scope)
#AutoGenerated by 'rcrs-server/scripts/platforms/compile.sh'
#Please do not modify it
from enum import IntEnum
class Entity(IntEnum):
WORLD = 0x1101
ROAD = 0x1102
BLOCKADE = 0x1103
BUILDING = 0x1104
REFUGE = 0x1105
HYDRANT = 0x1106
GAS_STATION = 0x1107
FIRE_STATION = 0x1108
AMBULANCE_CENTRE = 0x1109
POLICE_OFFICE = 0x110a
CIVILIAN = 0x110b
FIRE_BRIGADE = 0x110c
AMBULANCE_TEAM = 0x110d
POLICE_FORCE = 0x110e
class Property(IntEnum):
START_TIME = 0x1201
LONGITUDE = 0x1202
LATITUDE = 0x1203
WIND_FORCE = 0x1204
WIND_DIRECTION = 0x1205
X = 0x1206
Y = 0x1207
BLOCKADES = 0x1208
REPAIR_COST = 0x1209
FLOORS = 0x120a
BUILDING_ATTRIBUTES = 0x120b
IGNITION = 0x120c
FIERYNESS = 0x120d
BROKENNESS = 0x120e
BUILDING_CODE = 0x120f
BUILDING_AREA_GROUND = 0x1210
BUILDING_AREA_TOTAL = 0x1211
APEXES = 0x1212
EDGES = 0x1213
POSITION = 0x1214
DIRECTION = 0x1215
POSITION_HISTORY = 0x1216
STAMINA = 0x1217
HP = 0x1218
DAMAGE = 0x1219
BURIEDNESS = 0x121a
TRAVEL_DISTANCE = 0x121b
WATER_QUANTITY = 0x121c
TEMPERATURE = 0x121d
IMPORTANCE = 0x121e
CAPACITY = 0x121f
BED_CAPACITY = 0x1220
OCCUPIED_BEDS = 0x1221
REFILL_CAPACITY = 0x1222
WAITING_LIST_SIZE = 0x1223
class Command(IntEnum):
AK_REST = 0x1301
AK_MOVE = 0x1302
AK_LOAD = 0x1303
AK_UNLOAD = 0x1304
AK_SAY = 0x1305
AK_TELL = 0x1306
AK_EXTINGUISH = 0x1307
AK_RESCUE = 0x1308
AK_CLEAR = 0x1309
AK_CLEAR_AREA = 0x130a
AK_SUBSCRIBE = 0x130b
AK_SPEAK = 0x130c
class ComponentCommand(IntEnum):
Target = 0x1401
DestinationX = 0x1402
DestinationY = 0x1403
Water = 0x1404
Path = 0x1405
Message = 0x1406
Channel = 0x1407
Channels = 0x1408
class ControlMSG(IntEnum):
KG_CONNECT = 0x0101
KG_ACKNOWLEDGE = 0x0102
GK_CONNECT_OK = 0x0103
GK_CONNECT_ERROR = 0x0104
SK_CONNECT = 0x0105
SK_ACKNOWLEDGE = 0x0106
SK_UPDATE = 0x0107
KS_CONNECT_OK = 0x0108
KS_CONNECT_ERROR = 0x0109
KS_UPDATE = 0x010a
KS_COMMANDS = 0x010b
KS_AFTERSHOCKS_INFO = 0x010c
VK_CONNECT = 0x010d
VK_ACKNOWLEDGE = 0x010e
KV_CONNECT_OK = 0x010f
KV_CONNECT_ERROR = 0x0110
KV_TIMESTEP = 0x0111
AK_CONNECT = 0x0112
AK_ACKNOWLEDGE = 0x0113
KA_CONNECT_OK = 0x0114
KA_CONNECT_ERROR = 0x0115
KA_SENSE = 0x0116
SHUTDOWN = 0x0117
ENTITY_ID_REQUEST = 0x0118
ENTITY_ID_RESPONSE = 0x0119
class ComponentControlMSG(IntEnum):
RequestID = 0x0201
AgentID = 0x0202
Version = 0x0203
Name = 0x0204
RequestedEntityTypes = 0x0205
SimulatorID = 0x0206
RequestNumber = 0x0207
NumberOfIDs = 0x0208
NewEntityIDs = 0x0209
Reason = 0x020a
Entities = 0x020b
ViewerID = 0x020c
AgentConfig = 0x020d
Time = 0x020e
Updates = 0x020f
Hearing = 0x0210
INTENSITIES = 0x0211
TIMES = 0x0212
ID = 0x0213
Commands = 0x0214
SimulatorConfig = 0x0215
Changes = 0x0216
MAP={int(u):u for u in list(Entity) +list(Property) +list(Command) +list(ComponentCommand) +list(ControlMSG) +list(ComponentControlMSG) }
\ No newline at end of file
#!/bin/bash
. functions.sh
MAP_DIR=$1
if [[ ! -z "$MAP_DIR" ]]; then
MAP_DIR=$(abspath $MAP_DIR)
if [[ -z "$MAP_DIR" ]]; then
exit 1
fi
fi
echo "starting randomScenarioGenerator..."
makeClasspath $BASEDIR/jars $BASEDIR/lib
execute random-scenario-editor "java -Xmx512m -cp $CP -Dlog4j.log.dir=$BASEDIR/logs/log gis2.scenario.RandomScenarioGenerator $MAP_DIR $*"
\ No newline at end of file
#!/bin/bash
. functions.sh
SCENARIO_DIR=$1
if [[ ! -z "$SCENARIO_DIR" ]]; then
SCENARIO_DIR=$(abspath $SCENARIO_DIR)
if [[ -z "$SCENARIO_DIR" ]]; then
exit 1
fi
fi
echo "starting scenarioEditor...."
makeClasspath $BASEDIR/jars $BASEDIR/lib
execute scenario-editor "java -Xmx512m -cp $CP -Dlog4j.log.dir=$BASEDIR/logs/log gis2.scenario.ScenarioEditor $SCENARIO_DIR"
\ No newline at end of file
#!/bin/bash
. functions.sh
processArgs $*
# Delete old logs
rm -f $LOGDIR/*.log
# startGIS
startKernel --nomenu --autorun
startSims
startViewer
echo "Start your agents"
waitFor $LOGDIR/kernel.log "Kernel has shut down" 30
kill $PIDS
\ No newline at end of file
#!/bin/bash
. functions.sh
processArgs $*
# Delete old logs
rm -f $LOGDIR/*.log
# startGIS
startKernel --nomenu
echo "Start your agents"
waitFor $LOGDIR/kernel.log "Kernel has shut down" 30
kill $PIDS
\ No newline at end of file
#!/bin/bash
trap "echo 'killing...'; ./kill.sh; exit" INT
. functions.sh
processArgs $*
# Delete old logs
rm -f $LOGDIR/*.log
sh kill.sh
# startGIS
startKernel --nomenu
startSims
startViewer
startViewerEventLogger
echo "Start your agents"
waitFor $LOGDIR/kernel.log "Kernel has shut down" 30
kill $PIDS
./kill.sh
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment