(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i, 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.IMData.prototype.toObject = function(opt_includeInstance) { return proto.IMData.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.IMData} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.IMData.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), type: jspb.Message.getFieldWithDefault(msg, 2, 0), initdata: (f = msg.getInitdata()) && proto.IMData.InitData.toObject(includeInstance, f), msgdata: (f = msg.getMsgdata()) && proto.IMData.MsgData.toObject(includeInstance, f), timestamp: jspb.Message.getFieldWithDefault(msg, 5, 0), expandMap: (f = msg.getExpandMap()) ? 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.IMData} */ proto.IMData.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.IMData; return proto.IMData.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.IMData} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.IMData} */ proto.IMData.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.setId(value); break; case 2: var value = /** @type {number} */ (reader.readInt32()); msg.setType(value); break; case 3: var value = new proto.IMData.InitData; reader.readMessage(value,proto.IMData.InitData.deserializeBinaryFromReader); msg.setInitdata(value); break; case 4: var value = new proto.IMData.MsgData; reader.readMessage(value,proto.IMData.MsgData.deserializeBinaryFromReader); msg.setMsgdata(value); break; case 5: var value = /** @type {number} */ (reader.readInt64()); msg.setTimestamp(value); break; case 6: var value = msg.getExpandMap(); 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.IMData.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.IMData.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.IMData} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.IMData.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getType(); if (f !== 0) { writer.writeInt32( 2, f ); } f = message.getInitdata(); if (f != null) { writer.writeMessage( 3, f, proto.IMData.InitData.serializeBinaryToWriter ); } f = message.getMsgdata(); if (f != null) { writer.writeMessage( 4, f, proto.IMData.MsgData.serializeBinaryToWriter ); } f = message.getTimestamp(); if (f !== 0) { writer.writeInt64( 5, f ); } f = message.getExpandMap(true); if (f && f.getLength() > 0) { f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); } }; 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_, 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.IMData.InitData.prototype.toObject = function(opt_includeInstance) { return proto.IMData.InitData.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.IMData.InitData} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.IMData.InitData.toObject = function(includeInstance, msg) { var f, obj = { heartbeatms: jspb.Message.getFieldWithDefault(msg, 1, 0), timeoutms: jspb.Message.getFieldWithDefault(msg, 2, 0), reconnectmaxnum: jspb.Message.getFieldWithDefault(msg, 3, 0), reconnectms: jspb.Message.getFieldWithDefault(msg, 4, 0), allowaccess: jspb.Message.getFieldWithDefault(msg, 5, false), expandMap: (f = msg.getExpandMap()) ? 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.IMData.InitData} */ proto.IMData.InitData.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.IMData.InitData; return proto.IMData.InitData.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.IMData.InitData} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.IMData.InitData} */ proto.IMData.InitData.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.setHeartbeatms(value); break; case 2: var value = /** @type {number} */ (reader.readInt32()); msg.setTimeoutms(value); break; case 3: var value = /** @type {number} */ (reader.readInt32()); msg.setReconnectmaxnum(value); break; case 4: var value = /** @type {number} */ (reader.readInt32()); msg.setReconnectms(value); break; case 5: var value = /** @type {boolean} */ (reader.readBool()); msg.setAllowaccess(value); break; case 6: var value = msg.getExpandMap(); 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.IMData.InitData.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.IMData.InitData.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.IMData.InitData} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.IMData.InitData.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getHeartbeatms(); if (f !== 0) { writer.writeInt32( 1, f ); } f = message.getTimeoutms(); if (f !== 0) { writer.writeInt32( 2, f ); } f = message.getReconnectmaxnum(); if (f !== 0) { writer.writeInt32( 3, f ); } f = message.getReconnectms(); if (f !== 0) { writer.writeInt32( 4, f ); } f = message.getAllowaccess(); if (f) { writer.writeBool( 5, f ); } f = message.getExpandMap(true); if (f && f.getLength() > 0) { f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); } }; /** * optional int32 heartbeatMS = 1; * @return {number} */ proto.IMData.InitData.prototype.getHeartbeatms = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** @param {number} value */ proto.IMData.InitData.prototype.setHeartbeatms = function(value) { jspb.Message.setProto3IntField(this, 1, value); }; /** * optional int32 timeoutMS = 2; * @return {number} */ proto.IMData.InitData.prototype.getTimeoutms = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** @param {number} value */ proto.IMData.InitData.prototype.setTimeoutms = function(value) { jspb.Message.setProto3IntField(this, 2, value); }; /** * optional int32 reconnectMaxNum = 3; * @return {number} */ proto.IMData.InitData.prototype.getReconnectmaxnum = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** @param {number} value */ proto.IMData.InitData.prototype.setReconnectmaxnum = function(value) { jspb.Message.setProto3IntField(this, 3, value); }; /** * optional int32 reconnectMS = 4; * @return {number} */ proto.IMData.InitData.prototype.getReconnectms = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** @param {number} value */ proto.IMData.InitData.prototype.setReconnectms = function(value) { jspb.Message.setProto3IntField(this, 4, value); }; /** * optional bool allowAccess = 5; * @return {boolean} */ proto.IMData.InitData.prototype.getAllowaccess = function() { return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 5, false)); }; /** @param {boolean} value */ proto.IMData.InitData.prototype.setAllowaccess = function(value) { jspb.Message.setProto3BooleanField(this, 5, value); }; /** * map expand = 6; * @param {boolean=} opt_noLazyCreate Do not create the map if * empty, instead returning `undefined` * @return {!jspb.Map} */ proto.IMData.InitData.prototype.getExpandMap = function(opt_noLazyCreate) { return /** @type {!jspb.Map} */ ( jspb.Message.getMapField(this, 6, opt_noLazyCreate, null)); }; /** * Clears values from the map. The map will be non-null. */ proto.IMData.InitData.prototype.clearExpandMap = function() { this.getExpandMap().clear(); }; 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_, 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.IMData.MsgData.prototype.toObject = function(opt_includeInstance) { return proto.IMData.MsgData.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.IMData.MsgData} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.IMData.MsgData.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), sid: jspb.Message.getFieldWithDefault(msg, 2, 0), fromuser: (f = msg.getFromuser()) && proto.IMData.MsgData.FromUser.toObject(includeInstance, f), touserid: jspb.Message.getFieldWithDefault(msg, 4, ""), msgtype: jspb.Message.getFieldWithDefault(msg, 5, ""), customtype: jspb.Message.getFieldWithDefault(msg, 6, ""), msgbody: jspb.Message.getFieldWithDefault(msg, 7, ""), sendtime: jspb.Message.getFieldWithDefault(msg, 8, 0), expandMap: (f = msg.getExpandMap()) ? 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.IMData.MsgData} */ proto.IMData.MsgData.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.IMData.MsgData; return proto.IMData.MsgData.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.IMData.MsgData} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.IMData.MsgData} */ proto.IMData.MsgData.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.setId(value); break; case 2: var value = /** @type {number} */ (reader.readInt64()); msg.setSid(value); break; case 3: var value = new proto.IMData.MsgData.FromUser; reader.readMessage(value,proto.IMData.MsgData.FromUser.deserializeBinaryFromReader); msg.setFromuser(value); break; case 4: var value = /** @type {string} */ (reader.readString()); msg.setTouserid(value); break; case 5: var value = /** @type {string} */ (reader.readString()); msg.setMsgtype(value); break; case 6: var value = /** @type {string} */ (reader.readString()); msg.setCustomtype(value); break; case 7: var value = /** @type {string} */ (reader.readString()); msg.setMsgbody(value); break; case 8: var value = /** @type {number} */ (reader.readInt64()); msg.setSendtime(value); break; case 9: var value = msg.getExpandMap(); 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.IMData.MsgData.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.IMData.MsgData.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.IMData.MsgData} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.IMData.MsgData.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getSid(); if (f !== 0) { writer.writeInt64( 2, f ); } f = message.getFromuser(); if (f != null) { writer.writeMessage( 3, f, proto.IMData.MsgData.FromUser.serializeBinaryToWriter ); } f = message.getTouserid(); if (f.length > 0) { writer.writeString( 4, f ); } f = message.getMsgtype(); if (f.length > 0) { writer.writeString( 5, f ); } f = message.getCustomtype(); if (f.length > 0) { writer.writeString( 6, f ); } f = message.getMsgbody(); if (f.length > 0) { writer.writeString( 7, f ); } f = message.getSendtime(); if (f !== 0) { writer.writeInt64( 8, f ); } f = message.getExpandMap(true); if (f && f.getLength() > 0) { f.serializeBinary(9, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); } }; 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_, 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.IMData.MsgData.FromUser.prototype.toObject = function(opt_includeInstance) { return proto.IMData.MsgData.FromUser.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.IMData.MsgData.FromUser} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.IMData.MsgData.FromUser.toObject = function(includeInstance, msg) { var f, obj = { id: jspb.Message.getFieldWithDefault(msg, 1, ""), nickname: jspb.Message.getFieldWithDefault(msg, 2, ""), headimg: jspb.Message.getFieldWithDefault(msg, 3, ""), expandMap: (f = msg.getExpandMap()) ? 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.IMData.MsgData.FromUser} */ proto.IMData.MsgData.FromUser.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.IMData.MsgData.FromUser; return proto.IMData.MsgData.FromUser.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.IMData.MsgData.FromUser} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.IMData.MsgData.FromUser} */ proto.IMData.MsgData.FromUser.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.setId(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setNickname(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setHeadimg(value); break; case 4: var value = msg.getExpandMap(); 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.IMData.MsgData.FromUser.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.IMData.MsgData.FromUser.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.IMData.MsgData.FromUser} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.IMData.MsgData.FromUser.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getId(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getNickname(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getHeadimg(); if (f.length > 0) { writer.writeString( 3, f ); } f = message.getExpandMap(true); if (f && f.getLength() > 0) { f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); } }; /** * optional string id = 1; * @return {string} */ proto.IMData.MsgData.FromUser.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** @param {string} value */ proto.IMData.MsgData.FromUser.prototype.setId = function(value) { jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string nickName = 2; * @return {string} */ proto.IMData.MsgData.FromUser.prototype.getNickname = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** @param {string} value */ proto.IMData.MsgData.FromUser.prototype.setNickname = function(value) { jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string headImg = 3; * @return {string} */ proto.IMData.MsgData.FromUser.prototype.getHeadimg = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** @param {string} value */ proto.IMData.MsgData.FromUser.prototype.setHeadimg = function(value) { jspb.Message.setProto3StringField(this, 3, value); }; /** * map expand = 4; * @param {boolean=} opt_noLazyCreate Do not create the map if * empty, instead returning `undefined` * @return {!jspb.Map} */ proto.IMData.MsgData.FromUser.prototype.getExpandMap = function(opt_noLazyCreate) { return /** @type {!jspb.Map} */ ( jspb.Message.getMapField(this, 4, opt_noLazyCreate, null)); }; /** * Clears values from the map. The map will be non-null. */ proto.IMData.MsgData.FromUser.prototype.clearExpandMap = function() { this.getExpandMap().clear(); }; /** * optional string id = 1; * @return {string} */ proto.IMData.MsgData.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** @param {string} value */ proto.IMData.MsgData.prototype.setId = function(value) { jspb.Message.setProto3StringField(this, 1, value); }; /** * optional int64 sId = 2; * @return {number} */ proto.IMData.MsgData.prototype.getSid = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** @param {number} value */ proto.IMData.MsgData.prototype.setSid = function(value) { jspb.Message.setProto3IntField(this, 2, value); }; /** * optional FromUser fromUser = 3; * @return {?proto.IMData.MsgData.FromUser} */ proto.IMData.MsgData.prototype.getFromuser = function() { return /** @type{?proto.IMData.MsgData.FromUser} */ ( jspb.Message.getWrapperField(this, proto.IMData.MsgData.FromUser, 3)); }; /** @param {?proto.IMData.MsgData.FromUser|undefined} value */ proto.IMData.MsgData.prototype.setFromuser = function(value) { jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. */ proto.IMData.MsgData.prototype.clearFromuser = function() { this.setFromuser(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.IMData.MsgData.prototype.hasFromuser = function() { return jspb.Message.getField(this, 3) != null; }; /** * optional string toUserId = 4; * @return {string} */ proto.IMData.MsgData.prototype.getTouserid = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); }; /** @param {string} value */ proto.IMData.MsgData.prototype.setTouserid = function(value) { jspb.Message.setProto3StringField(this, 4, value); }; /** * optional string msgType = 5; * @return {string} */ proto.IMData.MsgData.prototype.getMsgtype = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); }; /** @param {string} value */ proto.IMData.MsgData.prototype.setMsgtype = function(value) { jspb.Message.setProto3StringField(this, 5, value); }; /** * optional string customType = 6; * @return {string} */ proto.IMData.MsgData.prototype.getCustomtype = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** @param {string} value */ proto.IMData.MsgData.prototype.setCustomtype = function(value) { jspb.Message.setProto3StringField(this, 6, value); }; /** * optional string msgBody = 7; * @return {string} */ proto.IMData.MsgData.prototype.getMsgbody = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** @param {string} value */ proto.IMData.MsgData.prototype.setMsgbody = function(value) { jspb.Message.setProto3StringField(this, 7, value); }; /** * optional int64 sendTime = 8; * @return {number} */ proto.IMData.MsgData.prototype.getSendtime = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); }; /** @param {number} value */ proto.IMData.MsgData.prototype.setSendtime = function(value) { jspb.Message.setProto3IntField(this, 8, value); }; /** * map expand = 9; * @param {boolean=} opt_noLazyCreate Do not create the map if * empty, instead returning `undefined` * @return {!jspb.Map} */ proto.IMData.MsgData.prototype.getExpandMap = function(opt_noLazyCreate) { return /** @type {!jspb.Map} */ ( jspb.Message.getMapField(this, 9, opt_noLazyCreate, null)); }; /** * Clears values from the map. The map will be non-null. */ proto.IMData.MsgData.prototype.clearExpandMap = function() { this.getExpandMap().clear(); }; /** * optional string id = 1; * @return {string} */ proto.IMData.prototype.getId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** @param {string} value */ proto.IMData.prototype.setId = function(value) { jspb.Message.setProto3StringField(this, 1, value); }; /** * optional int32 type = 2; * @return {number} */ proto.IMData.prototype.getType = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** @param {number} value */ proto.IMData.prototype.setType = function(value) { jspb.Message.setProto3IntField(this, 2, value); }; /** * optional InitData initData = 3; * @return {?proto.IMData.InitData} */ proto.IMData.prototype.getInitdata = function() { return /** @type{?proto.IMData.InitData} */ ( jspb.Message.getWrapperField(this, proto.IMData.InitData, 3)); }; /** @param {?proto.IMData.InitData|undefined} value */ proto.IMData.prototype.setInitdata = function(value) { jspb.Message.setWrapperField(this, 3, value); }; /** * Clears the message field making it undefined. */ proto.IMData.prototype.clearInitdata = function() { this.setInitdata(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.IMData.prototype.hasInitdata = function() { return jspb.Message.getField(this, 3) != null; }; /** * optional MsgData msgData = 4; * @return {?proto.IMData.MsgData} */ proto.IMData.prototype.getMsgdata = function() { return /** @type{?proto.IMData.MsgData} */ ( jspb.Message.getWrapperField(this, proto.IMData.MsgData, 4)); }; /** @param {?proto.IMData.MsgData|undefined} value */ proto.IMData.prototype.setMsgdata = function(value) { jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. */ proto.IMData.prototype.clearMsgdata = function() { this.setMsgdata(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.IMData.prototype.hasMsgdata = function() { return jspb.Message.getField(this, 4) != null; }; /** * optional int64 timestamp = 5; * @return {number} */ proto.IMData.prototype.getTimestamp = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); }; /** @param {number} value */ proto.IMData.prototype.setTimestamp = function(value) { jspb.Message.setProto3IntField(this, 5, value); }; /** * map expand = 6; * @param {boolean=} opt_noLazyCreate Do not create the map if * empty, instead returning `undefined` * @return {!jspb.Map} */ proto.IMData.prototype.getExpandMap = function(opt_noLazyCreate) { return /** @type {!jspb.Map} */ ( jspb.Message.getMapField(this, 6, opt_noLazyCreate, null)); }; /** * Clears values from the map. The map will be non-null. */ proto.IMData.prototype.clearExpandMap = function() { this.getExpandMap().clear(); }; goog.object.extend(exports, proto); },{"./google-protobuf":3}],2:[function(require,module,exports){ var IMDataProto = require('./IMDataProto_pb.js'); module.exports = { IMDataProto: IMDataProto } },{"./IMDataProto_pb.js":1}],3:[function(require,module,exports){ (function (global,Buffer){ var $jscomp={scope:{},getGlobal:function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global?global:a}};$jscomp.global=$jscomp.getGlobal(this);$jscomp.initSymbol=function(){$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol);$jscomp.initSymbol=function(){}};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(a){return"jscomp_symbol_"+a+$jscomp.symbolCounter_++}; $jscomp.initSymbolIterator=function(){$jscomp.initSymbol();$jscomp.global.Symbol.iterator||($jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));$jscomp.initSymbolIterator=function(){}};$jscomp.makeIterator=function(a){$jscomp.initSymbolIterator();$jscomp.initSymbol();$jscomp.initSymbolIterator();var b=a[Symbol.iterator];if(b)return b.call(a);var c=0;return{next:function(){return cb;)--c in this?this[--a]=this[c]:delete this[a];return this};$jscomp.array.copyWithin$install=function(){$jscomp.array.installHelper_("copyWithin",$jscomp.array.copyWithin)}; $jscomp.array.fill=function(a,b,c){var d=this.length||0;0>b&&(b=Math.max(0,d+b));if(null==c||c>d)c=d;c=Number(c);0>c&&(c=Math.max(0,d+c));for(b=Number(b||0);b>>0;if(0===a)return 32;var b=0;0===(a&4294901760)&&(a<<=16,b+=16);0===(a&4278190080)&&(a<<=8,b+=8);0===(a&4026531840)&&(a<<=4,b+=4);0===(a&3221225472)&&(a<<=2,b+=2);0===(a&2147483648)&&b++;return b};$jscomp.math.imul=function(a,b){a=Number(a);b=Number(b);var c=a&65535,d=b&65535;return c*d+((a>>>16&65535)*d+c*(b>>>16&65535)<<16>>>0)|0};$jscomp.math.sign=function(a){a=Number(a);return 0===a||isNaN(a)?a:0a&&-.25a&&-.25a?-b:b};$jscomp.math.acosh=function(a){a=Number(a);return Math.log(a+Math.sqrt(a*a-1))};$jscomp.math.asinh=function(a){a=Number(a);if(0===a)return a;var b=Math.log(Math.abs(a)+Math.sqrt(a*a+1));return 0>a?-b:b}; $jscomp.math.atanh=function(a){a=Number(a);return($jscomp.math.log1p(a)-$jscomp.math.log1p(-a))/2};$jscomp.math.hypot=function(a,b,c){a=Number(a);b=Number(b);var d,e,f,g=Math.max(Math.abs(a),Math.abs(b));for(d=2;dg){a/=g;b/=g;f=a*a+b*b;for(d=2;da?-b:b};$jscomp.math.cbrt=function(a){if(0===a)return a;a=Number(a);var b=Math.pow(Math.abs(a),1/3);return 0>a?-b:b};$jscomp.number=$jscomp.number||{};$jscomp.number.isFinite=function(a){return"number"!==typeof a?!1:!isNaN(a)&&Infinity!==a&&-Infinity!==a};$jscomp.number.isInteger=function(a){return $jscomp.number.isFinite(a)?a===Math.floor(a):!1}; $jscomp.number.isNaN=function(a){return"number"===typeof a&&isNaN(a)};$jscomp.number.isSafeInteger=function(a){return $jscomp.number.isInteger(a)&&Math.abs(a)<=$jscomp.number.MAX_SAFE_INTEGER};$jscomp.number.EPSILON=function(){return Math.pow(2,-52)}();$jscomp.number.MAX_SAFE_INTEGER=function(){return 9007199254740991}();$jscomp.number.MIN_SAFE_INTEGER=function(){return-9007199254740991}();$jscomp.object=$jscomp.object||{}; $jscomp.object.assign=function(a,b){for(var c=1;cd||1114111=d?b+=String.fromCharCode(d):(d-=65536,b+=String.fromCharCode(d>>>10&1023|55296),b+=String.fromCharCode(d&1023|56320))}return b}; $jscomp.string.repeat=function(a){var b=$jscomp.checkStringArgs(this,null,"repeat");if(0>a||1342177279>>=1)b+=b;return c};$jscomp.string.repeat$install=function(){String.prototype.repeat||(String.prototype.repeat=$jscomp.string.repeat)}; $jscomp.string.codePointAt=function(a){var b=$jscomp.checkStringArgs(this,null,"codePointAt"),c=b.length;a=Number(a)||0;if(0<=a&&ad||56319a||57343=e}; $jscomp.string.startsWith$install=function(){String.prototype.startsWith||(String.prototype.startsWith=$jscomp.string.startsWith)};$jscomp.string.endsWith=function(a,b){var c=$jscomp.checkStringArgs(this,a,"endsWith");a+="";void 0===b&&(b=c.length);for(var d=Math.max(0,Math.min(b|0,c.length)),e=a.length;0=e};$jscomp.string.endsWith$install=function(){String.prototype.endsWith||(String.prototype.endsWith=$jscomp.string.endsWith)}; var COMPILED=!0,goog=goog||{};goog.global=this;goog.isDef=function(a){return void 0!==a};goog.exportPath_=function(a,b,c){a=a.split(".");c=c||goog.global;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&goog.isDef(b)?c[d]=b:c=c[d]?c[d]:c[d]={}}; goog.define=function(a,b){var c=b;COMPILED||(goog.global.CLOSURE_UNCOMPILED_DEFINES&&Object.prototype.hasOwnProperty.call(goog.global.CLOSURE_UNCOMPILED_DEFINES,a)?c=goog.global.CLOSURE_UNCOMPILED_DEFINES[a]:goog.global.CLOSURE_DEFINES&&Object.prototype.hasOwnProperty.call(goog.global.CLOSURE_DEFINES,a)&&(c=goog.global.CLOSURE_DEFINES[a]));goog.exportPath_(a,c)};goog.DEBUG=!0;goog.LOCALE="en";goog.TRUSTED_SITE=!0;goog.STRICT_MODE_COMPATIBLE=!1;goog.DISALLOW_TEST_ONLY_CODE=COMPILED&&!goog.DEBUG; goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1;goog.provide=function(a){if(!COMPILED&&goog.isProvided_(a))throw Error('Namespace "'+a+'" already declared.');goog.constructNamespace_(a)};goog.constructNamespace_=function(a,b){if(!COMPILED){delete goog.implicitNamespaces_[a];for(var c=a;(c=c.substring(0,c.lastIndexOf(".")))&&!goog.getObjectByName(c);)goog.implicitNamespaces_[c]=!0}goog.exportPath_(a,b)};goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/; goog.module=function(a){if(!goog.isString(a)||!a||-1==a.search(goog.VALID_MODULE_RE_))throw Error("Invalid module identifier");if(!goog.isInModuleLoader_())throw Error("Module "+a+" has been loaded incorrectly.");if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");goog.moduleLoaderState_.moduleName=a;if(!COMPILED){if(goog.isProvided_(a))throw Error('Namespace "'+a+'" already declared.');delete goog.implicitNamespaces_[a]}};goog.module.get=function(a){return goog.module.getInternal_(a)}; goog.module.getInternal_=function(a){if(!COMPILED)return goog.isProvided_(a)?a in goog.loadedModules_?goog.loadedModules_[a]:goog.getObjectByName(a):null};goog.moduleLoaderState_=null;goog.isInModuleLoader_=function(){return null!=goog.moduleLoaderState_}; goog.module.declareLegacyNamespace=function(){if(!COMPILED&&!goog.isInModuleLoader_())throw Error("goog.module.declareLegacyNamespace must be called from within a goog.module");if(!COMPILED&&!goog.moduleLoaderState_.moduleName)throw Error("goog.module must be called prior to goog.module.declareLegacyNamespace.");goog.moduleLoaderState_.declareLegacyNamespace=!0}; goog.setTestOnly=function(a){if(goog.DISALLOW_TEST_ONLY_CODE)throw a=a||"",Error("Importing test-only code into non-debug environment"+(a?": "+a:"."));};goog.forwardDeclare=function(a){};COMPILED||(goog.isProvided_=function(a){return a in goog.loadedModules_||!goog.implicitNamespaces_[a]&&goog.isDefAndNotNull(goog.getObjectByName(a))},goog.implicitNamespaces_={"goog.module":!0}); goog.getObjectByName=function(a,b){for(var c=a.split("."),d=b||goog.global,e;e=c.shift();)if(goog.isDefAndNotNull(d[e]))d=d[e];else return null;return d};goog.globalize=function(a,b){var c=b||goog.global,d;for(d in a)c[d]=a[d]};goog.addDependency=function(a,b,c,d){if(goog.DEPENDENCIES_ENABLED){var e;a=a.replace(/\\/g,"/");for(var f=goog.dependencies_,g=0;e=b[g];g++)f.nameToPath[e]=a,f.pathIsModule[a]=!!d;for(d=0;b=c[d];d++)a in f.requires||(f.requires[a]={}),f.requires[a][b]=!0}}; goog.ENABLE_DEBUG_LOADER=!0;goog.logToConsole_=function(a){goog.global.console&&goog.global.console.error(a)};goog.require=function(a){if(!COMPILED){goog.ENABLE_DEBUG_LOADER&&goog.IS_OLD_IE_&&goog.maybeProcessDeferredDep_(a);if(goog.isProvided_(a))return goog.isInModuleLoader_()?goog.module.getInternal_(a):null;if(goog.ENABLE_DEBUG_LOADER){var b=goog.getPathFromDeps_(a);if(b)return goog.writeScripts_(b),null}a="goog.require could not find: "+a;goog.logToConsole_(a);throw Error(a);}}; goog.basePath="";goog.nullFunction=function(){};goog.abstractMethod=function(){throw Error("unimplemented abstract method");};goog.addSingletonGetter=function(a){a.getInstance=function(){if(a.instance_)return a.instance_;goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=a);return a.instance_=new a}};goog.instantiatedSingletons_=[];goog.LOAD_MODULE_USING_EVAL=!0;goog.SEAL_MODULE_EXPORTS=goog.DEBUG;goog.loadedModules_={};goog.DEPENDENCIES_ENABLED=!COMPILED&&goog.ENABLE_DEBUG_LOADER; goog.DEPENDENCIES_ENABLED&&(goog.dependencies_={pathIsModule:{},nameToPath:{},requires:{},visited:{},written:{},deferred:{}},goog.inHtmlDocument_=function(){var a=goog.global.document;return null!=a&&"write"in a},goog.findBasePath_=function(){if(goog.isDef(goog.global.CLOSURE_BASE_PATH))goog.basePath=goog.global.CLOSURE_BASE_PATH;else if(goog.inHtmlDocument_())for(var a=goog.global.document.getElementsByTagName("SCRIPT"),b=a.length-1;0<=b;--b){var c=a[b].src,d=c.lastIndexOf("?"),d=-1==d?c.length: d;if("base.js"==c.substr(d-7,7)){goog.basePath=c.substr(0,d-7);break}}},goog.importScript_=function(a,b){(goog.global.CLOSURE_IMPORT_SCRIPT||goog.writeScriptTag_)(a,b)&&(goog.dependencies_.written[a]=!0)},goog.IS_OLD_IE_=!(goog.global.atob||!goog.global.document||!goog.global.document.all),goog.importModule_=function(a){goog.importScript_("",'goog.retrieveAndExecModule_("'+a+'");')&&(goog.dependencies_.written[a]=!0)},goog.queuedModules_=[],goog.wrapModule_=function(a,b){return goog.LOAD_MODULE_USING_EVAL&& goog.isDef(goog.global.JSON)?"goog.loadModule("+goog.global.JSON.stringify(b+"\n//# sourceURL="+a+"\n")+");":'goog.loadModule(function(exports) {"use strict";'+b+"\n;return exports});\n//# sourceURL="+a+"\n"},goog.loadQueuedModules_=function(){var a=goog.queuedModules_.length;if(0\x3c/script>')},goog.appendScriptSrcNode_=function(a){var b=goog.global.document, c=b.createElement("script");c.type="text/javascript";c.src=a;c.defer=!1;c.async=!1;b.head.appendChild(c)},goog.writeScriptTag_=function(a,b){if(goog.inHtmlDocument_()){var c=goog.global.document;if(!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING&&"complete"==c.readyState){if(/\bdeps.js$/.test(a))return!1;throw Error('Cannot write "'+a+'" after document load');}var d=goog.IS_OLD_IE_;void 0===b?d?(d=" onreadystatechange='goog.onScriptLoad_(this, "+ ++goog.lastNonModuleScriptIndex_+")' ",c.write('