// source: spine/system/server/mirror.proto
/**
* @fileoverview
* @enhanceable
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
var jspb = require('google-protobuf');
var goog = jspb;
var global = Function('return this')();
var spine_options_pb = require('../../../spine/options_pb.js');
goog.object.extend(proto, spine_options_pb);
var google_protobuf_any_pb = require('../../../google/protobuf/any_pb.js');
goog.object.extend(proto, google_protobuf_any_pb);
var spine_core_version_pb = require('../../../spine/core/version_pb.js');
goog.object.extend(proto, spine_core_version_pb);
var spine_server_entity_entity_pb = require('../../../spine/server/entity/entity_pb.js');
goog.object.extend(proto, spine_server_entity_entity_pb);
goog.exportSymbol('proto.spine.system.server.EntityColumns', null, global);
goog.exportSymbol('proto.spine.system.server.Mirror', null, global);
goog.exportSymbol('proto.spine.system.server.MirrorId', 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.spine.system.server.Mirror = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.spine.system.server.Mirror, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.spine.system.server.Mirror.displayName = 'proto.spine.system.server.Mirror';
}
/**
* 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.spine.system.server.MirrorId = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.spine.system.server.MirrorId, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.spine.system.server.MirrorId.displayName = 'proto.spine.system.server.MirrorId';
}
/**
* 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.spine.system.server.EntityColumns = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.spine.system.server.EntityColumns, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.spine.system.server.EntityColumns.displayName = 'proto.spine.system.server.EntityColumns';
}
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.spine.system.server.Mirror.prototype.toObject = function(opt_includeInstance) {
return proto.spine.system.server.Mirror.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.spine.system.server.Mirror} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.spine.system.server.Mirror.toObject = function(includeInstance, msg) {
var f, obj = {
id: (f = msg.getId()) && proto.spine.system.server.MirrorId.toObject(includeInstance, f),
state: (f = msg.getState()) && google_protobuf_any_pb.Any.toObject(includeInstance, f),
lifecycle: (f = msg.getLifecycle()) && spine_server_entity_entity_pb.LifecycleFlags.toObject(includeInstance, f),
columns: (f = msg.getColumns()) && proto.spine.system.server.EntityColumns.toObject(includeInstance, f),
version: (f = msg.getVersion()) && spine_core_version_pb.Version.toObject(includeInstance, f),
aggregateType: jspb.Message.getFieldWithDefault(msg, 6, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.spine.system.server.Mirror}
*/
proto.spine.system.server.Mirror.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.spine.system.server.Mirror;
return proto.spine.system.server.Mirror.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.spine.system.server.Mirror} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.spine.system.server.Mirror}
*/
proto.spine.system.server.Mirror.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.spine.system.server.MirrorId;
reader.readMessage(value,proto.spine.system.server.MirrorId.deserializeBinaryFromReader);
msg.setId(value);
break;
case 2:
var value = new google_protobuf_any_pb.Any;
reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
msg.setState(value);
break;
case 3:
var value = new spine_server_entity_entity_pb.LifecycleFlags;
reader.readMessage(value,spine_server_entity_entity_pb.LifecycleFlags.deserializeBinaryFromReader);
msg.setLifecycle(value);
break;
case 4:
var value = new proto.spine.system.server.EntityColumns;
reader.readMessage(value,proto.spine.system.server.EntityColumns.deserializeBinaryFromReader);
msg.setColumns(value);
break;
case 5:
var value = new spine_core_version_pb.Version;
reader.readMessage(value,spine_core_version_pb.Version.deserializeBinaryFromReader);
msg.setVersion(value);
break;
case 6:
var value = /** @type {string} */ (reader.readString());
msg.setAggregateType(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.spine.system.server.Mirror.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.spine.system.server.Mirror.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.spine.system.server.Mirror} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.spine.system.server.Mirror.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getId();
if (f != null) {
writer.writeMessage(
1,
f,
proto.spine.system.server.MirrorId.serializeBinaryToWriter
);
}
f = message.getState();
if (f != null) {
writer.writeMessage(
2,
f,
google_protobuf_any_pb.Any.serializeBinaryToWriter
);
}
f = message.getLifecycle();
if (f != null) {
writer.writeMessage(
3,
f,
spine_server_entity_entity_pb.LifecycleFlags.serializeBinaryToWriter
);
}
f = message.getColumns();
if (f != null) {
writer.writeMessage(
4,
f,
proto.spine.system.server.EntityColumns.serializeBinaryToWriter
);
}
f = message.getVersion();
if (f != null) {
writer.writeMessage(
5,
f,
spine_core_version_pb.Version.serializeBinaryToWriter
);
}
f = message.getAggregateType();
if (f.length > 0) {
writer.writeString(
6,
f
);
}
};
/**
* optional MirrorId id = 1;
* @return {?proto.spine.system.server.MirrorId}
*/
proto.spine.system.server.Mirror.prototype.getId = function() {
return /** @type{?proto.spine.system.server.MirrorId} */ (
jspb.Message.getWrapperField(this, proto.spine.system.server.MirrorId, 1));
};
/**
* @param {?proto.spine.system.server.MirrorId|undefined} value
* @return {!proto.spine.system.server.Mirror} returns this
*/
proto.spine.system.server.Mirror.prototype.setId = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.spine.system.server.Mirror} returns this
*/
proto.spine.system.server.Mirror.prototype.clearId = function() {
return this.setId(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.spine.system.server.Mirror.prototype.hasId = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional google.protobuf.Any state = 2;
* @return {?proto.google.protobuf.Any}
*/
proto.spine.system.server.Mirror.prototype.getState = function() {
return /** @type{?proto.google.protobuf.Any} */ (
jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 2));
};
/**
* @param {?proto.google.protobuf.Any|undefined} value
* @return {!proto.spine.system.server.Mirror} returns this
*/
proto.spine.system.server.Mirror.prototype.setState = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.spine.system.server.Mirror} returns this
*/
proto.spine.system.server.Mirror.prototype.clearState = function() {
return this.setState(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.spine.system.server.Mirror.prototype.hasState = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional spine.server.entity.LifecycleFlags lifecycle = 3;
* @return {?proto.spine.server.entity.LifecycleFlags}
*/
proto.spine.system.server.Mirror.prototype.getLifecycle = function() {
return /** @type{?proto.spine.server.entity.LifecycleFlags} */ (
jspb.Message.getWrapperField(this, spine_server_entity_entity_pb.LifecycleFlags, 3));
};
/**
* @param {?proto.spine.server.entity.LifecycleFlags|undefined} value
* @return {!proto.spine.system.server.Mirror} returns this
*/
proto.spine.system.server.Mirror.prototype.setLifecycle = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.spine.system.server.Mirror} returns this
*/
proto.spine.system.server.Mirror.prototype.clearLifecycle = function() {
return this.setLifecycle(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.spine.system.server.Mirror.prototype.hasLifecycle = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional EntityColumns columns = 4;
* @return {?proto.spine.system.server.EntityColumns}
*/
proto.spine.system.server.Mirror.prototype.getColumns = function() {
return /** @type{?proto.spine.system.server.EntityColumns} */ (
jspb.Message.getWrapperField(this, proto.spine.system.server.EntityColumns, 4));
};
/**
* @param {?proto.spine.system.server.EntityColumns|undefined} value
* @return {!proto.spine.system.server.Mirror} returns this
*/
proto.spine.system.server.Mirror.prototype.setColumns = function(value) {
return jspb.Message.setWrapperField(this, 4, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.spine.system.server.Mirror} returns this
*/
proto.spine.system.server.Mirror.prototype.clearColumns = function() {
return this.setColumns(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.spine.system.server.Mirror.prototype.hasColumns = function() {
return jspb.Message.getField(this, 4) != null;
};
/**
* optional spine.core.Version version = 5;
* @return {?proto.spine.core.Version}
*/
proto.spine.system.server.Mirror.prototype.getVersion = function() {
return /** @type{?proto.spine.core.Version} */ (
jspb.Message.getWrapperField(this, spine_core_version_pb.Version, 5));
};
/**
* @param {?proto.spine.core.Version|undefined} value
* @return {!proto.spine.system.server.Mirror} returns this
*/
proto.spine.system.server.Mirror.prototype.setVersion = function(value) {
return jspb.Message.setWrapperField(this, 5, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.spine.system.server.Mirror} returns this
*/
proto.spine.system.server.Mirror.prototype.clearVersion = function() {
return this.setVersion(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.spine.system.server.Mirror.prototype.hasVersion = function() {
return jspb.Message.getField(this, 5) != null;
};
/**
* optional string aggregate_type = 6;
* @return {string}
*/
proto.spine.system.server.Mirror.prototype.getAggregateType = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
};
/**
* @param {string} value
* @return {!proto.spine.system.server.Mirror} returns this
*/
proto.spine.system.server.Mirror.prototype.setAggregateType = function(value) {
return jspb.Message.setProto3StringField(this, 6, value);
};
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.spine.system.server.MirrorId.prototype.toObject = function(opt_includeInstance) {
return proto.spine.system.server.MirrorId.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.spine.system.server.MirrorId} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.spine.system.server.MirrorId.toObject = function(includeInstance, msg) {
var f, obj = {
value: (f = msg.getValue()) && google_protobuf_any_pb.Any.toObject(includeInstance, f),
typeUrl: jspb.Message.getFieldWithDefault(msg, 2, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.spine.system.server.MirrorId}
*/
proto.spine.system.server.MirrorId.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.spine.system.server.MirrorId;
return proto.spine.system.server.MirrorId.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.spine.system.server.MirrorId} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.spine.system.server.MirrorId}
*/
proto.spine.system.server.MirrorId.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new google_protobuf_any_pb.Any;
reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
msg.setValue(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setTypeUrl(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.spine.system.server.MirrorId.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.spine.system.server.MirrorId.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.spine.system.server.MirrorId} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.spine.system.server.MirrorId.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getValue();
if (f != null) {
writer.writeMessage(
1,
f,
google_protobuf_any_pb.Any.serializeBinaryToWriter
);
}
f = message.getTypeUrl();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
};
/**
* optional google.protobuf.Any value = 1;
* @return {?proto.google.protobuf.Any}
*/
proto.spine.system.server.MirrorId.prototype.getValue = function() {
return /** @type{?proto.google.protobuf.Any} */ (
jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 1));
};
/**
* @param {?proto.google.protobuf.Any|undefined} value
* @return {!proto.spine.system.server.MirrorId} returns this
*/
proto.spine.system.server.MirrorId.prototype.setValue = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.spine.system.server.MirrorId} returns this
*/
proto.spine.system.server.MirrorId.prototype.clearValue = function() {
return this.setValue(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.spine.system.server.MirrorId.prototype.hasValue = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional string type_url = 2;
* @return {string}
*/
proto.spine.system.server.MirrorId.prototype.getTypeUrl = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.spine.system.server.MirrorId} returns this
*/
proto.spine.system.server.MirrorId.prototype.setTypeUrl = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
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.spine.system.server.EntityColumns.prototype.toObject = function(opt_includeInstance) {
return proto.spine.system.server.EntityColumns.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.spine.system.server.EntityColumns} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.spine.system.server.EntityColumns.toObject = function(includeInstance, msg) {
var f, obj = {
columnsMap: (f = msg.getColumnsMap()) ? f.toObject(includeInstance, proto.google.protobuf.Any.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.spine.system.server.EntityColumns}
*/
proto.spine.system.server.EntityColumns.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.spine.system.server.EntityColumns;
return proto.spine.system.server.EntityColumns.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.spine.system.server.EntityColumns} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.spine.system.server.EntityColumns}
*/
proto.spine.system.server.EntityColumns.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = msg.getColumnsMap();
reader.readMessage(value, function(message, reader) {
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Any.deserializeBinaryFromReader, "", new proto.google.protobuf.Any());
});
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.spine.system.server.EntityColumns.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.spine.system.server.EntityColumns.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.spine.system.server.EntityColumns} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.spine.system.server.EntityColumns.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getColumnsMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Any.serializeBinaryToWriter);
}
};
/**
* map<string, google.protobuf.Any> columns = 1;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<string,!proto.google.protobuf.Any>}
*/
proto.spine.system.server.EntityColumns.prototype.getColumnsMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<string,!proto.google.protobuf.Any>} */ (
jspb.Message.getMapField(this, 1, opt_noLazyCreate,
proto.google.protobuf.Any));
};
/**
* Clears values from the map. The map will be non-null.
* @return {!proto.spine.system.server.EntityColumns} returns this
*/
proto.spine.system.server.EntityColumns.prototype.clearColumnsMap = function() {
this.getColumnsMap().clear();
return this;};
goog.object.extend(exports, proto.spine.system.server);
// Generated by Spine ProtoJs Plugin
let ObjectParser = require('../../../../client/parser/object-parser.js').default;
let TypeParsers = require('../../../../client/parser/type-parsers.js').default;
proto.spine.system.server.EntityColumns.Parser = function() {
ObjectParser.call(this);
};
proto.spine.system.server.EntityColumns.Parser.prototype = Object.create(ObjectParser.prototype);
proto.spine.system.server.EntityColumns.Parser.prototype.constructor = proto.spine.system.server.EntityColumns.Parser;
proto.spine.system.server.EntityColumns.Parser.prototype.fromObject = function(obj) {
if (obj === null) {
return null;
}
let msg = new proto.spine.system.server.EntityColumns();
if (obj.columns !== undefined && obj.columns !== null) {
for (let attribute in obj.columns) {
if (obj.columns.hasOwnProperty(attribute)) {
let mapKey = attribute;
if (obj.columns[attribute] === null) {
msg.getColumnsMap().set(mapKey, null);
} else {
let value = TypeParsers.parserFor('type.googleapis.com/google.protobuf.Any').fromObject(obj.columns[attribute]);
msg.getColumnsMap().set(mapKey, value);
}
}
}
}
return msg;
};
proto.spine.system.server.MirrorId.Parser = function() {
ObjectParser.call(this);
};
proto.spine.system.server.MirrorId.Parser.prototype = Object.create(ObjectParser.prototype);
proto.spine.system.server.MirrorId.Parser.prototype.constructor = proto.spine.system.server.MirrorId.Parser;
proto.spine.system.server.MirrorId.Parser.prototype.fromObject = function(obj) {
if (obj === null) {
return null;
}
let msg = new proto.spine.system.server.MirrorId();
if (obj.value !== undefined) {
if (obj.value === null) {
msg.setValue(null);
} else {
let value = TypeParsers.parserFor('type.googleapis.com/google.protobuf.Any').fromObject(obj.value);
msg.setValue(value);
}
}
if (obj.typeUrl !== undefined) {
if (obj.typeUrl !== null) {
let value = obj.typeUrl;
msg.setTypeUrl(value);
}
}
return msg;
};
proto.spine.system.server.Mirror.Parser = function() {
ObjectParser.call(this);
};
proto.spine.system.server.Mirror.Parser.prototype = Object.create(ObjectParser.prototype);
proto.spine.system.server.Mirror.Parser.prototype.constructor = proto.spine.system.server.Mirror.Parser;
proto.spine.system.server.Mirror.Parser.prototype.fromObject = function(obj) {
if (obj === null) {
return null;
}
let msg = new proto.spine.system.server.Mirror();
if (obj.id !== undefined) {
if (obj.id === null) {
msg.setId(null);
} else {
let value = TypeParsers.parserFor('type.spine.io/spine.system.server.MirrorId').fromObject(obj.id);
msg.setId(value);
}
}
if (obj.state !== undefined) {
if (obj.state === null) {
msg.setState(null);
} else {
let value = TypeParsers.parserFor('type.googleapis.com/google.protobuf.Any').fromObject(obj.state);
msg.setState(value);
}
}
if (obj.lifecycle !== undefined) {
if (obj.lifecycle === null) {
msg.setLifecycle(null);
} else {
let value = TypeParsers.parserFor('type.spine.io/spine.server.entity.LifecycleFlags').fromObject(obj.lifecycle);
msg.setLifecycle(value);
}
}
if (obj.columns !== undefined) {
if (obj.columns === null) {
msg.setColumns(null);
} else {
let value = TypeParsers.parserFor('type.spine.io/spine.system.server.EntityColumns').fromObject(obj.columns);
msg.setColumns(value);
}
}
if (obj.version !== undefined) {
if (obj.version === null) {
msg.setVersion(null);
} else {
let value = TypeParsers.parserFor('type.spine.io/spine.core.Version').fromObject(obj.version);
msg.setVersion(value);
}
}
if (obj.aggregateType !== undefined) {
if (obj.aggregateType !== null) {
let value = obj.aggregateType;
msg.setAggregateType(value);
}
}
return msg;
};
// Generated by Spine ProtoJs Plugin
proto.spine.system.server.EntityColumns.typeUrl = function() {
return 'type.spine.io/spine.system.server.EntityColumns';
};
// Generated by Spine ProtoJs Plugin
proto.spine.system.server.MirrorId.typeUrl = function() {
return 'type.spine.io/spine.system.server.MirrorId';
};
// Generated by Spine ProtoJs Plugin
proto.spine.system.server.Mirror.typeUrl = function() {
return 'type.spine.io/spine.system.server.Mirror';
};