(function($protobuf){var $Reader=$protobuf.Reader,$Writer=$protobuf.Writer,$util=$protobuf.util;var $root=$protobuf.roots.laya||($protobuf.roots.laya={});$root.proto=function(){var proto={};proto.CMD_GAME=function(){var valuesById={},values=Object.create(valuesById);values[valuesById[0]="CMD_GAME_INVALID"]=0;values[valuesById[4097]="CMD_GAME_LOGIN"]=4097;values[valuesById[4104]="CMD_GAME_QUERY_CHART"]=4104;values[valuesById[4105]="CMD_GAME_BUY"]=4105;values[valuesById[4106]="CMD_GAME_QUERY_EQUIP"]=4106;values[valuesById[4107]="CMD_GAME_DRESS_PET"]=4107;values[valuesById[4108]="CMD_GAME_USE_PET"]=4108;values[valuesById[4109]="CMD_GAME_SET_COOKIE"]=4109;values[valuesById[4110]="CMD_GAME_QUERY_PROFILE"]=4110;values[valuesById[4113]="CMD_GAME_SIGN_IN"]=4113;values[valuesById[4114]="CMD_GAME_CHARGE"]=4114;values[valuesById[4115]="CMD_GAME_FETCH_BEHAVIOR_AWARD"]=4115;values[valuesById[4116]="CMD_GAME_DOUBLE_PLAY_AWARD"]=4116;values[valuesById[4117]="CMD_GAME_SET_INVITER"]=4117;values[valuesById[4118]="CMD_GAME_QUERY_INVITE_AWARD"]=4118;values[valuesById[4119]="CMD_GAME_FETCH_INVITE_AWARD"]=4119;values[valuesById[4120]="CMD_GAME_CLIENT_SUB_COIN"]=4120;values[valuesById[4121]="CMD_GAME_QUERY_THEMES"]=4121;values[valuesById[4122]="CMD_GAME_UPGRADE_PET"]=4122;values[valuesById[4179]="CMD_GAME_SINGLE_RESULT"]=4179;return values}();proto.RET_GAME=function(){var valuesById={},values=Object.create(valuesById);values[valuesById[0]="RET_GAME_SUCCESS"]=0;values[valuesById[1]="RET_GAME_SYS_ERR"]=1;values[valuesById[2]="RET_GAME_INSUFFICIENT_COIN"]=2;values[valuesById[3]="RET_GAME_INSUFFICIENT_FUNDS"]=3;values[valuesById[4]="RET_GAME_INSUFFICIENT_PIECE"]=4;values[valuesById[5]="RET_GAME_TICKET_EXPIRED"]=5;values[valuesById[6]="RET_GAME_BEHAVIOR_AWARDED"]=6;values[valuesById[7]="RET_GAME_INSUFFICIENT_GOLD"]=7;values[valuesById[10]="RET_GAME_SHARED"]=10;return values}();proto.GAME_LOGIN_REQ=function(){function GAME_LOGIN_REQ(properties){if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:message.code=reader.string();break;case 2:message.name=reader.string();break;case 3:message.headurl=reader.string();break;default:reader.skipType(tag&7);break}}return message};GAME_LOGIN_REQ.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_LOGIN_REQ.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.code!=null&&message.hasOwnProperty("code"))if(!$util.isString(message.code))return"code: string expected";if(message.name!=null&&message.hasOwnProperty("name"))if(!$util.isString(message.name))return"name: string expected";if(message.headurl!=null&&message.hasOwnProperty("headurl"))if(!$util.isString(message.headurl))return"headurl: string expected";return null};GAME_LOGIN_REQ.fromObject=function fromObject(object){if(object instanceof $root.proto.GAME_LOGIN_REQ)return object;var message=new $root.proto.GAME_LOGIN_REQ;if(object.code!=null)message.code=String(object.code);if(object.name!=null)message.name=String(object.name);if(object.headurl!=null)message.headurl=String(object.headurl);return message};GAME_LOGIN_REQ.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.defaults){object.code="";object.name="";object.headurl=""}if(message.code!=null&&message.hasOwnProperty("code"))object.code=message.code;if(message.name!=null&&message.hasOwnProperty("name"))object.name=message.name;if(message.headurl!=null&&message.hasOwnProperty("headurl"))object.headurl=message.headurl;return object};GAME_LOGIN_REQ.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return GAME_LOGIN_REQ}();proto.GAME_LOGIN_RSP=function(){function GAME_LOGIN_RSP(properties){if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:message.sessId=reader.bytes();break;case 2:message.role=$root.proto.Role.decode(reader,reader.uint32());break;case 3:message.signInDay=reader.int32();break;case 4:message.newFlag=reader.bool();break;case 5:message.signInFlag=reader.bool();break;case 10:message.cookie=$root.proto.Cookie.decode(reader,reader.uint32());break;case 14:message.loc=reader.string();break;case 15:message.ip=reader.string();break;default:reader.skipType(tag&7);break}}return message};GAME_LOGIN_RSP.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_LOGIN_RSP.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.sessId!=null&&message.hasOwnProperty("sessId"))if(!(message.sessId&&typeof message.sessId.length==="number"||$util.isString(message.sessId)))return"sessId: buffer expected";if(message.role!=null&&message.hasOwnProperty("role")){var error=$root.proto.Role.verify(message.role);if(error)return"role."+error}if(message.signInDay!=null&&message.hasOwnProperty("signInDay"))if(!$util.isInteger(message.signInDay))return"signInDay: integer expected";if(message.newFlag!=null&&message.hasOwnProperty("newFlag"))if(typeof message.newFlag!=="boolean")return"newFlag: boolean expected";if(message.signInFlag!=null&&message.hasOwnProperty("signInFlag"))if(typeof message.signInFlag!=="boolean")return"signInFlag: boolean expected";if(message.cookie!=null&&message.hasOwnProperty("cookie")){var error=$root.proto.Cookie.verify(message.cookie);if(error)return"cookie."+error}if(message.loc!=null&&message.hasOwnProperty("loc"))if(!$util.isString(message.loc))return"loc: string expected";if(message.ip!=null&&message.hasOwnProperty("ip"))if(!$util.isString(message.ip))return"ip: string expected";return null};GAME_LOGIN_RSP.fromObject=function fromObject(object){if(object instanceof $root.proto.GAME_LOGIN_RSP)return object;var message=new $root.proto.GAME_LOGIN_RSP;if(object.sessId!=null)if(typeof object.sessId==="string")$util.base64.decode(object.sessId,message.sessId=$util.newBuffer($util.base64.length(object.sessId)),0);else if(object.sessId.length)message.sessId=object.sessId;if(object.role!=null){if(typeof object.role!=="object")throw TypeError(".proto.GAME_LOGIN_RSP.role: object expected");message.role=$root.proto.Role.fromObject(object.role)}if(object.signInDay!=null)message.signInDay=object.signInDay|0;if(object.newFlag!=null)message.newFlag=Boolean(object.newFlag);if(object.signInFlag!=null)message.signInFlag=Boolean(object.signInFlag);if(object.cookie!=null){if(typeof object.cookie!=="object")throw TypeError(".proto.GAME_LOGIN_RSP.cookie: object expected");message.cookie=$root.proto.Cookie.fromObject(object.cookie)}if(object.loc!=null)message.loc=String(object.loc);if(object.ip!=null)message.ip=String(object.ip);return message};GAME_LOGIN_RSP.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.defaults){object.sessId=options.bytes===String?"":[];object.role=null;object.signInDay=0;object.newFlag=false;object.signInFlag=false;object.cookie=null;object.loc="";object.ip=""}if(message.sessId!=null&&message.hasOwnProperty("sessId"))object.sessId=options.bytes===String?$util.base64.encode(message.sessId,0,message.sessId.length):options.bytes===Array?Array.prototype.slice.call(message.sessId):message.sessId;if(message.role!=null&&message.hasOwnProperty("role"))object.role=$root.proto.Role.toObject(message.role,options);if(message.signInDay!=null&&message.hasOwnProperty("signInDay"))object.signInDay=message.signInDay;if(message.newFlag!=null&&message.hasOwnProperty("newFlag"))object.newFlag=message.newFlag;if(message.signInFlag!=null&&message.hasOwnProperty("signInFlag"))object.signInFlag=message.signInFlag;if(message.cookie!=null&&message.hasOwnProperty("cookie"))object.cookie=$root.proto.Cookie.toObject(message.cookie,options);if(message.loc!=null&&message.hasOwnProperty("loc"))object.loc=message.loc;if(message.ip!=null&&message.hasOwnProperty("ip"))object.ip=message.ip;return object};GAME_LOGIN_RSP.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return GAME_LOGIN_RSP}();proto.GAME_SET_COOKIE_REQ=function(){function GAME_SET_COOKIE_REQ(properties){if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:message.cookie=$root.proto.Cookie.decode(reader,reader.uint32());break;default:reader.skipType(tag&7);break}}return message};GAME_SET_COOKIE_REQ.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_SET_COOKIE_REQ.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.cookie!=null&&message.hasOwnProperty("cookie")){var error=$root.proto.Cookie.verify(message.cookie);if(error)return"cookie."+error}return null};GAME_SET_COOKIE_REQ.fromObject=function fromObject(object){if(object instanceof $root.proto.GAME_SET_COOKIE_REQ)return object;var message=new $root.proto.GAME_SET_COOKIE_REQ;if(object.cookie!=null){if(typeof object.cookie!=="object")throw TypeError(".proto.GAME_SET_COOKIE_REQ.cookie: object expected");message.cookie=$root.proto.Cookie.fromObject(object.cookie)}return message};GAME_SET_COOKIE_REQ.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.defaults)object.cookie=null;if(message.cookie!=null&&message.hasOwnProperty("cookie"))object.cookie=$root.proto.Cookie.toObject(message.cookie,options);return object};GAME_SET_COOKIE_REQ.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return GAME_SET_COOKIE_REQ}();proto.GAME_SET_COOKIE_RSP=function(){function GAME_SET_COOKIE_RSP(properties){if(properties)for(var keys=Object.keys(properties),i=0;i>>3){default:reader.skipType(tag&7);break}}return message};GAME_SET_COOKIE_RSP.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_SET_COOKIE_RSP.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";return null};GAME_SET_COOKIE_RSP.fromObject=function fromObject(object){if(object instanceof $root.proto.GAME_SET_COOKIE_RSP)return object;return new $root.proto.GAME_SET_COOKIE_RSP};GAME_SET_COOKIE_RSP.toObject=function toObject(){return{}};GAME_SET_COOKIE_RSP.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return GAME_SET_COOKIE_RSP}();proto.GAME_QUERY_CHART_REQ=function(){function GAME_QUERY_CHART_REQ(properties){if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:message.type=reader.int32();break;case 2:message.begin=reader.int32();break;case 3:message.count=reader.int32();break;default:reader.skipType(tag&7);break}}return message};GAME_QUERY_CHART_REQ.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_QUERY_CHART_REQ.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.type!=null&&message.hasOwnProperty("type"))switch(message.type){default:return"type: enum value expected";case 0:case 2:break}if(message.begin!=null&&message.hasOwnProperty("begin"))if(!$util.isInteger(message.begin))return"begin: integer expected";if(message.count!=null&&message.hasOwnProperty("count"))if(!$util.isInteger(message.count))return"count: integer expected";return null};GAME_QUERY_CHART_REQ.fromObject=function fromObject(object){if(object instanceof $root.proto.GAME_QUERY_CHART_REQ)return object;var message=new $root.proto.GAME_QUERY_CHART_REQ;switch(object.type){case "CHART_TYPE_INVALID":case 0:message.type=0;break;case "CHART_TYPE_SINGLE_SCORE":case 2:message.type=2;break}if(object.begin!=null)message.begin=object.begin|0;if(object.count!=null)message.count=object.count|0;return message};GAME_QUERY_CHART_REQ.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.defaults){object.type=options.enums===String?"CHART_TYPE_INVALID":0;object.begin=0;object.count=0}if(message.type!=null&&message.hasOwnProperty("type"))object.type=options.enums===String?$root.proto.CHART_TYPE[message.type]:message.type;if(message.begin!=null&&message.hasOwnProperty("begin"))object.begin=message.begin;if(message.count!=null&&message.hasOwnProperty("count"))object.count=message.count;return object};GAME_QUERY_CHART_REQ.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return GAME_QUERY_CHART_REQ}();proto.GAME_QUERY_CHART_RSP=function(){function GAME_QUERY_CHART_RSP(properties){this.result=[];if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:if(!(message.result&&message.result.length))message.result=[];message.result.push($root.proto.ChartEntry.decode(reader,reader.uint32()));break;case 10:message.stars=reader.int32();break;case 11:message.beginTime=reader.int64();break;case 12:message.endTime=reader.int64();break;case 13:message.playCnt=reader.int32();break;case 14:message.winCnt=reader.int32();break;default:reader.skipType(tag&7);break}}return message};GAME_QUERY_CHART_RSP.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_QUERY_CHART_RSP.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.result!=null&&message.hasOwnProperty("result")){if(!Array.isArray(message.result))return"result: array expected";for(var i=0;i>>0,object.beginTime.high>>>0)).toNumber();if(object.endTime!=null)if($util.Long)(message.endTime=$util.Long.fromValue(object.endTime)).unsigned=false;else if(typeof object.endTime==="string")message.endTime=parseInt(object.endTime,10);else if(typeof object.endTime==="number")message.endTime=object.endTime;else if(typeof object.endTime==="object")message.endTime=(new $util.LongBits(object.endTime.low>>>0,object.endTime.high>>>0)).toNumber();if(object.playCnt!=null)message.playCnt=object.playCnt|0;if(object.winCnt!=null)message.winCnt=object.winCnt|0;return message};GAME_QUERY_CHART_RSP.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.arrays||options.defaults)object.result=[];if(options.defaults){object.stars=0;if($util.Long){var long=new $util.Long(0,0,false);object.beginTime=options.longs===String?long.toString():options.longs===Number?long.toNumber():long}else object.beginTime=options.longs===String?"0":0;if($util.Long){var long=new $util.Long(0,0,false);object.endTime=options.longs===String?long.toString():options.longs===Number?long.toNumber():long}else object.endTime=options.longs===String?"0":0;object.playCnt=0;object.winCnt=0}if(message.result&&message.result.length){object.result=[];for(var j=0;j>>0,message.beginTime.high>>>0)).toNumber():message.beginTime;if(message.endTime!=null&&message.hasOwnProperty("endTime"))if(typeof message.endTime==="number")object.endTime=options.longs===String?String(message.endTime):message.endTime;else object.endTime=options.longs===String?$util.Long.prototype.toString.call(message.endTime):options.longs===Number?(new $util.LongBits(message.endTime.low>>>0,message.endTime.high>>>0)).toNumber():message.endTime;if(message.playCnt!=null&&message.hasOwnProperty("playCnt"))object.playCnt=message.playCnt;if(message.winCnt!=null&&message.hasOwnProperty("winCnt"))object.winCnt=message.winCnt;return object};GAME_QUERY_CHART_RSP.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return GAME_QUERY_CHART_RSP}();proto.GAME_BUY_REQ=function(){function GAME_BUY_REQ(properties){if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:message.id=reader.uint32();break;default:reader.skipType(tag&7);break}}return message};GAME_BUY_REQ.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_BUY_REQ.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.id!=null&&message.hasOwnProperty("id"))if(!$util.isInteger(message.id))return"id: integer expected";return null};GAME_BUY_REQ.fromObject=function fromObject(object){if(object instanceof $root.proto.GAME_BUY_REQ)return object;var message=new $root.proto.GAME_BUY_REQ;if(object.id!=null)message.id=object.id>>>0;return message};GAME_BUY_REQ.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.defaults)object.id=0;if(message.id!=null&&message.hasOwnProperty("id"))object.id=message.id;return object};GAME_BUY_REQ.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return GAME_BUY_REQ}();proto.GAME_BUY_RSP=function(){function GAME_BUY_RSP(properties){this.resList=[];this.cost=[];if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:if(!(message.resList&&message.resList.length))message.resList=[];message.resList.push($root.proto.Res.decode(reader,reader.uint32()));break;case 2:if(!(message.cost&&message.cost.length))message.cost=[];message.cost.push($root.proto.Res.decode(reader,reader.uint32()));break;case 3:message.role=$root.proto.Role.decode(reader,reader.uint32());break;default:reader.skipType(tag&7);break}}return message};GAME_BUY_RSP.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_BUY_RSP.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.resList!=null&&message.hasOwnProperty("resList")){if(!Array.isArray(message.resList))return"resList: array expected";for(var i=0;i>>3){default:reader.skipType(tag&7);break}}return message};GAME_QUERY_EQUIP_REQ.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_QUERY_EQUIP_REQ.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";return null};GAME_QUERY_EQUIP_REQ.fromObject=function fromObject(object){if(object instanceof $root.proto.GAME_QUERY_EQUIP_REQ)return object;return new $root.proto.GAME_QUERY_EQUIP_REQ};GAME_QUERY_EQUIP_REQ.toObject=function toObject(){return{}};GAME_QUERY_EQUIP_REQ.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return GAME_QUERY_EQUIP_REQ}();proto.GAME_QUERY_EQUIP_RSP=function(){function GAME_QUERY_EQUIP_RSP(properties){this.petList=[];this.equipList=[];if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:if(!(message.petList&&message.petList.length))message.petList=[];message.petList.push($root.proto.Pet.decode(reader,reader.uint32()));break;case 2:if(!(message.equipList&&message.equipList.length))message.equipList=[];message.equipList.push($root.proto.Equip.decode(reader,reader.uint32()));break;default:reader.skipType(tag&7);break}}return message};GAME_QUERY_EQUIP_RSP.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_QUERY_EQUIP_RSP.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.petList!=null&&message.hasOwnProperty("petList")){if(!Array.isArray(message.petList))return"petList: array expected";for(var i=0;i>>3){case 1:message.petId=reader.uint32();break;case 2:message.equipId=reader.uint32();break;default:reader.skipType(tag&7);break}}return message};GAME_DRESS_PET_REQ.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_DRESS_PET_REQ.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.petId!=null&&message.hasOwnProperty("petId"))if(!$util.isInteger(message.petId))return"petId: integer expected";if(message.equipId!=null&&message.hasOwnProperty("equipId"))if(!$util.isInteger(message.equipId))return"equipId: integer expected";return null};GAME_DRESS_PET_REQ.fromObject=function fromObject(object){if(object instanceof $root.proto.GAME_DRESS_PET_REQ)return object;var message=new $root.proto.GAME_DRESS_PET_REQ;if(object.petId!=null)message.petId=object.petId>>>0;if(object.equipId!=null)message.equipId=object.equipId>>>0;return message};GAME_DRESS_PET_REQ.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.defaults){object.petId=0;object.equipId=0}if(message.petId!=null&&message.hasOwnProperty("petId"))object.petId=message.petId;if(message.equipId!=null&&message.hasOwnProperty("equipId"))object.equipId=message.equipId;return object};GAME_DRESS_PET_REQ.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return GAME_DRESS_PET_REQ}();proto.GAME_DRESS_PET_RSP=function(){function GAME_DRESS_PET_RSP(properties){if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:message.pet=$root.proto.Pet.decode(reader,reader.uint32());break;default:reader.skipType(tag&7);break}}return message};GAME_DRESS_PET_RSP.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_DRESS_PET_RSP.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.pet!=null&&message.hasOwnProperty("pet")){var error=$root.proto.Pet.verify(message.pet);if(error)return"pet."+error}return null};GAME_DRESS_PET_RSP.fromObject=function fromObject(object){if(object instanceof $root.proto.GAME_DRESS_PET_RSP)return object;var message=new $root.proto.GAME_DRESS_PET_RSP;if(object.pet!=null){if(typeof object.pet!=="object")throw TypeError(".proto.GAME_DRESS_PET_RSP.pet: object expected");message.pet=$root.proto.Pet.fromObject(object.pet)}return message};GAME_DRESS_PET_RSP.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.defaults)object.pet=null;if(message.pet!=null&&message.hasOwnProperty("pet"))object.pet=$root.proto.Pet.toObject(message.pet,options);return object};GAME_DRESS_PET_RSP.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return GAME_DRESS_PET_RSP}();proto.GAME_USE_PET_REQ=function(){function GAME_USE_PET_REQ(properties){if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:message.petId=reader.uint32();break;default:reader.skipType(tag&7);break}}return message};GAME_USE_PET_REQ.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_USE_PET_REQ.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.petId!=null&&message.hasOwnProperty("petId"))if(!$util.isInteger(message.petId))return"petId: integer expected";return null};GAME_USE_PET_REQ.fromObject=function fromObject(object){if(object instanceof $root.proto.GAME_USE_PET_REQ)return object;var message=new $root.proto.GAME_USE_PET_REQ;if(object.petId!=null)message.petId=object.petId>>>0;return message};GAME_USE_PET_REQ.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.defaults)object.petId=0;if(message.petId!=null&&message.hasOwnProperty("petId"))object.petId=message.petId;return object};GAME_USE_PET_REQ.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return GAME_USE_PET_REQ}();proto.GAME_USE_PET_RSP=function(){function GAME_USE_PET_RSP(properties){if(properties)for(var keys=Object.keys(properties),i=0;i>>3){default:reader.skipType(tag&7);break}}return message};GAME_USE_PET_RSP.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_USE_PET_RSP.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";return null};GAME_USE_PET_RSP.fromObject=function fromObject(object){if(object instanceof $root.proto.GAME_USE_PET_RSP)return object;return new $root.proto.GAME_USE_PET_RSP};GAME_USE_PET_RSP.toObject=function toObject(){return{}};GAME_USE_PET_RSP.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return GAME_USE_PET_RSP}();proto.GAME_QUERY_PROFILE_REQ=function(){function GAME_QUERY_PROFILE_REQ(properties){if(properties)for(var keys=Object.keys(properties),i=0;i>>3){default:reader.skipType(tag&7);break}}return message};GAME_QUERY_PROFILE_REQ.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_QUERY_PROFILE_REQ.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";return null};GAME_QUERY_PROFILE_REQ.fromObject=function fromObject(object){if(object instanceof $root.proto.GAME_QUERY_PROFILE_REQ)return object;return new $root.proto.GAME_QUERY_PROFILE_REQ};GAME_QUERY_PROFILE_REQ.toObject=function toObject(){return{}};GAME_QUERY_PROFILE_REQ.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return GAME_QUERY_PROFILE_REQ}();proto.GAME_QUERY_PROFILE_RSP=function(){function GAME_QUERY_PROFILE_RSP(properties){this.headFrameList=[];if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:message.petCnt=reader.int32();break;case 2:message.equipCnt=reader.int32();break;case 3:message.maxStars=reader.int32();break;case 4:message.playCnt=reader.int32();break;case 5:message.winCnt=reader.int32();break;case 6:message.seasonStars=reader.int32();break;case 10:if(!(message.headFrameList&&message.headFrameList.length))message.headFrameList=[];if((tag&7)===2){var end2=reader.uint32()+reader.pos;while(reader.pos>>0}return message};GAME_QUERY_PROFILE_RSP.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.arrays||options.defaults)object.headFrameList=[];if(options.defaults){object.petCnt=0;object.equipCnt=0;object.maxStars=0;object.playCnt=0;object.winCnt=0;object.seasonStars=0}if(message.petCnt!=null&&message.hasOwnProperty("petCnt"))object.petCnt=message.petCnt;if(message.equipCnt!=null&&message.hasOwnProperty("equipCnt"))object.equipCnt=message.equipCnt;if(message.maxStars!=null&&message.hasOwnProperty("maxStars"))object.maxStars=message.maxStars;if(message.playCnt!=null&&message.hasOwnProperty("playCnt"))object.playCnt=message.playCnt;if(message.winCnt!=null&&message.hasOwnProperty("winCnt"))object.winCnt=message.winCnt;if(message.seasonStars!=null&&message.hasOwnProperty("seasonStars"))object.seasonStars=message.seasonStars;if(message.headFrameList&&message.headFrameList.length){object.headFrameList=[];for(var j=0;j>>3){case 1:message.x2=reader.bool();break;default:reader.skipType(tag&7);break}}return message};GAME_SIGN_IN_REQ.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_SIGN_IN_REQ.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.x2!=null&&message.hasOwnProperty("x2"))if(typeof message.x2!=="boolean")return"x2: boolean expected";return null};GAME_SIGN_IN_REQ.fromObject=function fromObject(object){if(object instanceof $root.proto.GAME_SIGN_IN_REQ)return object;var message=new $root.proto.GAME_SIGN_IN_REQ;if(object.x2!=null)message.x2=Boolean(object.x2);return message};GAME_SIGN_IN_REQ.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.defaults)object.x2=false;if(message.x2!=null&&message.hasOwnProperty("x2"))object.x2=message.x2;return object};GAME_SIGN_IN_REQ.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return GAME_SIGN_IN_REQ}();proto.GAME_SIGN_IN_RSP=function(){function GAME_SIGN_IN_RSP(properties){this.resList=[];if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:if(!(message.resList&&message.resList.length))message.resList=[];message.resList.push($root.proto.Res.decode(reader,reader.uint32()));break;case 2:message.role=$root.proto.Role.decode(reader,reader.uint32());break;default:reader.skipType(tag&7);break}}return message};GAME_SIGN_IN_RSP.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_SIGN_IN_RSP.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.resList!=null&&message.hasOwnProperty("resList")){if(!Array.isArray(message.resList))return"resList: array expected";for(var i=0;i>>3){case 1:message.code=reader.string();break;case 2:message.id=reader.uint32();break;default:reader.skipType(tag&7);break}}return message};GAME_CHARGE_REQ.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_CHARGE_REQ.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.code!=null&&message.hasOwnProperty("code"))if(!$util.isString(message.code))return"code: string expected";if(message.id!=null&&message.hasOwnProperty("id"))if(!$util.isInteger(message.id))return"id: integer expected";return null};GAME_CHARGE_REQ.fromObject=function fromObject(object){if(object instanceof $root.proto.GAME_CHARGE_REQ)return object;var message=new $root.proto.GAME_CHARGE_REQ;if(object.code!=null)message.code=String(object.code);if(object.id!=null)message.id=object.id>>>0;return message};GAME_CHARGE_REQ.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.defaults){object.code="";object.id=0}if(message.code!=null&&message.hasOwnProperty("code"))object.code=message.code;if(message.id!=null&&message.hasOwnProperty("id"))object.id=message.id;return object};GAME_CHARGE_REQ.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return GAME_CHARGE_REQ}();proto.GAME_CHARGE_RSP=function(){function GAME_CHARGE_RSP(properties){if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:message.ok=reader.bool();break;case 2:message.msg=reader.string();break;case 3:message.role=$root.proto.Role.decode(reader,reader.uint32());break;case 4:message.billNo=reader.string();break;default:reader.skipType(tag&7);break}}return message};GAME_CHARGE_RSP.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_CHARGE_RSP.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.ok!=null&&message.hasOwnProperty("ok"))if(typeof message.ok!=="boolean")return"ok: boolean expected";if(message.msg!=null&&message.hasOwnProperty("msg"))if(!$util.isString(message.msg))return"msg: string expected";if(message.role!=null&&message.hasOwnProperty("role")){var error=$root.proto.Role.verify(message.role);if(error)return"role."+error}if(message.billNo!=null&&message.hasOwnProperty("billNo"))if(!$util.isString(message.billNo))return"billNo: string expected";return null};GAME_CHARGE_RSP.fromObject=function fromObject(object){if(object instanceof $root.proto.GAME_CHARGE_RSP)return object;var message=new $root.proto.GAME_CHARGE_RSP;if(object.ok!=null)message.ok=Boolean(object.ok);if(object.msg!=null)message.msg=String(object.msg);if(object.role!=null){if(typeof object.role!=="object")throw TypeError(".proto.GAME_CHARGE_RSP.role: object expected");message.role=$root.proto.Role.fromObject(object.role)}if(object.billNo!=null)message.billNo=String(object.billNo);return message};GAME_CHARGE_RSP.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.defaults){object.ok=false;object.msg="";object.role=null;object.billNo=""}if(message.ok!=null&&message.hasOwnProperty("ok"))object.ok=message.ok;if(message.msg!=null&&message.hasOwnProperty("msg"))object.msg=message.msg;if(message.role!=null&&message.hasOwnProperty("role"))object.role=$root.proto.Role.toObject(message.role,options);if(message.billNo!=null&&message.hasOwnProperty("billNo"))object.billNo=message.billNo;return object};GAME_CHARGE_RSP.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return GAME_CHARGE_RSP}();proto.GAME_FETCH_BEHAVIOR_AWARD_REQ=function(){function GAME_FETCH_BEHAVIOR_AWARD_REQ(properties){if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:message.type=reader.int32();break;case 10:message.code=reader.string();break;case 11:message.iv=reader.string();break;case 12:message.data=reader.string();break;default:reader.skipType(tag&7);break}}return message};GAME_FETCH_BEHAVIOR_AWARD_REQ.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_FETCH_BEHAVIOR_AWARD_REQ.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.type!=null&&message.hasOwnProperty("type"))switch(message.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:break}if(message.code!=null&&message.hasOwnProperty("code"))if(!$util.isString(message.code))return"code: string expected";if(message.iv!=null&&message.hasOwnProperty("iv"))if(!$util.isString(message.iv))return"iv: string expected";if(message.data!=null&&message.hasOwnProperty("data"))if(!$util.isString(message.data))return"data: string expected";return null};GAME_FETCH_BEHAVIOR_AWARD_REQ.fromObject=function fromObject(object){if(object instanceof $root.proto.GAME_FETCH_BEHAVIOR_AWARD_REQ)return object;var message=new $root.proto.GAME_FETCH_BEHAVIOR_AWARD_REQ;switch(object.type){case "AWARD_TYPE_INVALID":case 0:message.type=0;break;case "AWARD_TYPE_PLAY_GLOBAL_WINNER":case 1:message.type=1;break;case "AWARD_TYPE_PLAY_GLOBAL_LOSER":case 2:message.type=2;break;case "AWARD_TYPE_PLAY_GRADE_WINNER":case 3:message.type=3;break;case "AWARD_TYPE_PLAY_GRADE_LOSER":case 4:message.type=4;break;case "AWARD_TYPE_ADD_ONTO_DESKTOP":case 5:message.type=5;break;case "AWARD_TYPE_SHARE_1":case 6:message.type=6;break;case "AWARD_TYPE_SHARE_2":case 7:message.type=7;break;case "AWARD_TYPE_INVITE_1":case 8:message.type=8;break;case "AWARD_TYPE_INVITE_2":case 9:message.type=9;break;case "AWARD_TYPE_GIFT_BOX":case 10:message.type=10;break}if(object.code!=null)message.code=String(object.code);if(object.iv!=null)message.iv=String(object.iv);if(object.data!=null)message.data=String(object.data);return message};GAME_FETCH_BEHAVIOR_AWARD_REQ.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.defaults){object.type=options.enums===String?"AWARD_TYPE_INVALID":0;object.code="";object.iv="";object.data=""}if(message.type!=null&&message.hasOwnProperty("type"))object.type=options.enums===String?$root.proto.AWARD_TYPE[message.type]:message.type;if(message.code!=null&&message.hasOwnProperty("code"))object.code=message.code;if(message.iv!=null&&message.hasOwnProperty("iv"))object.iv=message.iv;if(message.data!=null&&message.hasOwnProperty("data"))object.data=message.data;return object};GAME_FETCH_BEHAVIOR_AWARD_REQ.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return GAME_FETCH_BEHAVIOR_AWARD_REQ}();proto.GAME_FETCH_BEHAVIOR_AWARD_RSP=function(){function GAME_FETCH_BEHAVIOR_AWARD_RSP(properties){this.resList=[];if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:if(!(message.resList&&message.resList.length))message.resList=[];message.resList.push($root.proto.Res.decode(reader,reader.uint32()));break;case 3:message.role=$root.proto.Role.decode(reader,reader.uint32());break;default:reader.skipType(tag&7);break}}return message};GAME_FETCH_BEHAVIOR_AWARD_RSP.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_FETCH_BEHAVIOR_AWARD_RSP.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.resList!=null&&message.hasOwnProperty("resList")){if(!Array.isArray(message.resList))return"resList: array expected";for(var i=0;i>>3){default:reader.skipType(tag&7);break}}return message};GAME_DOUBLE_PLAY_AWARD_REQ.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_DOUBLE_PLAY_AWARD_REQ.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";return null};GAME_DOUBLE_PLAY_AWARD_REQ.fromObject=function fromObject(object){if(object instanceof $root.proto.GAME_DOUBLE_PLAY_AWARD_REQ)return object;return new $root.proto.GAME_DOUBLE_PLAY_AWARD_REQ};GAME_DOUBLE_PLAY_AWARD_REQ.toObject=function toObject(){return{}};GAME_DOUBLE_PLAY_AWARD_REQ.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return GAME_DOUBLE_PLAY_AWARD_REQ}();proto.GAME_DOUBLE_PLAY_AWARD_RSP=function(){function GAME_DOUBLE_PLAY_AWARD_RSP(properties){this.resList=[];if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:if(!(message.resList&&message.resList.length))message.resList=[];message.resList.push($root.proto.Res.decode(reader,reader.uint32()));break;case 3:message.role=$root.proto.Role.decode(reader,reader.uint32());break;default:reader.skipType(tag&7);break}}return message};GAME_DOUBLE_PLAY_AWARD_RSP.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_DOUBLE_PLAY_AWARD_RSP.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.resList!=null&&message.hasOwnProperty("resList")){if(!Array.isArray(message.resList))return"resList: array expected";for(var i=0;i>>3){case 1:message.inviter=reader.uint32();break;case 2:message.themeId=reader.uint32();break;default:reader.skipType(tag&7);break}}return message};GAME_SET_INVITER_REQ.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_SET_INVITER_REQ.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.inviter!=null&&message.hasOwnProperty("inviter"))if(!$util.isInteger(message.inviter))return"inviter: integer expected";if(message.themeId!=null&&message.hasOwnProperty("themeId"))if(!$util.isInteger(message.themeId))return"themeId: integer expected";return null};GAME_SET_INVITER_REQ.fromObject=function fromObject(object){if(object instanceof $root.proto.GAME_SET_INVITER_REQ)return object;var message=new $root.proto.GAME_SET_INVITER_REQ;if(object.inviter!=null)message.inviter=object.inviter>>>0;if(object.themeId!=null)message.themeId=object.themeId>>>0;return message};GAME_SET_INVITER_REQ.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.defaults){object.inviter=0;object.themeId=0}if(message.inviter!=null&&message.hasOwnProperty("inviter"))object.inviter=message.inviter;if(message.themeId!=null&&message.hasOwnProperty("themeId"))object.themeId=message.themeId;return object};GAME_SET_INVITER_REQ.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return GAME_SET_INVITER_REQ}();proto.GAME_SET_INVITER_RSP=function(){function GAME_SET_INVITER_RSP(properties){if(properties)for(var keys=Object.keys(properties),i=0;i>>3){default:reader.skipType(tag&7);break}}return message};GAME_SET_INVITER_RSP.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_SET_INVITER_RSP.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";return null};GAME_SET_INVITER_RSP.fromObject=function fromObject(object){if(object instanceof $root.proto.GAME_SET_INVITER_RSP)return object;return new $root.proto.GAME_SET_INVITER_RSP};GAME_SET_INVITER_RSP.toObject=function toObject(){return{}};GAME_SET_INVITER_RSP.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return GAME_SET_INVITER_RSP}();proto.GAME_QUERY_INVITE_AWARD_REQ=function(){function GAME_QUERY_INVITE_AWARD_REQ(properties){if(properties)for(var keys=Object.keys(properties),i=0;i>>3){default:reader.skipType(tag&7);break}}return message};GAME_QUERY_INVITE_AWARD_REQ.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_QUERY_INVITE_AWARD_REQ.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";return null};GAME_QUERY_INVITE_AWARD_REQ.fromObject=function fromObject(object){if(object instanceof $root.proto.GAME_QUERY_INVITE_AWARD_REQ)return object;return new $root.proto.GAME_QUERY_INVITE_AWARD_REQ};GAME_QUERY_INVITE_AWARD_REQ.toObject=function toObject(){return{}};GAME_QUERY_INVITE_AWARD_REQ.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return GAME_QUERY_INVITE_AWARD_REQ}();proto.GAME_QUERY_INVITE_AWARD_RSP=function(){function GAME_QUERY_INVITE_AWARD_RSP(properties){this.headurlList=[];if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:if(!(message.headurlList&&message.headurlList.length))message.headurlList=[];message.headurlList.push(reader.string());break;case 2:message.fetchedCnt=reader.int32();break;default:reader.skipType(tag&7);break}}return message};GAME_QUERY_INVITE_AWARD_RSP.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_QUERY_INVITE_AWARD_RSP.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.headurlList!=null&&message.hasOwnProperty("headurlList")){if(!Array.isArray(message.headurlList))return"headurlList: array expected";for(var i=0;i>>3){default:reader.skipType(tag&7);break}}return message};GAME_FETCH_INVITE_AWARD_REQ.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_FETCH_INVITE_AWARD_REQ.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";return null};GAME_FETCH_INVITE_AWARD_REQ.fromObject=function fromObject(object){if(object instanceof $root.proto.GAME_FETCH_INVITE_AWARD_REQ)return object;return new $root.proto.GAME_FETCH_INVITE_AWARD_REQ};GAME_FETCH_INVITE_AWARD_REQ.toObject=function toObject(){return{}};GAME_FETCH_INVITE_AWARD_REQ.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return GAME_FETCH_INVITE_AWARD_REQ}();proto.GAME_FETCH_INVITE_AWARD_RSP=function(){function GAME_FETCH_INVITE_AWARD_RSP(properties){this.resList=[];if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:message.fetchedCnt=reader.int32();break;case 2:if(!(message.resList&&message.resList.length))message.resList=[];message.resList.push($root.proto.Res.decode(reader,reader.uint32()));break;case 3:message.role=$root.proto.Role.decode(reader,reader.uint32());break;default:reader.skipType(tag&7);break}}return message};GAME_FETCH_INVITE_AWARD_RSP.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_FETCH_INVITE_AWARD_RSP.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.fetchedCnt!=null&&message.hasOwnProperty("fetchedCnt"))if(!$util.isInteger(message.fetchedCnt))return"fetchedCnt: integer expected";if(message.resList!=null&&message.hasOwnProperty("resList")){if(!Array.isArray(message.resList))return"resList: array expected";for(var i=0;i>>3){case 2:message.score=reader.int32();break;case 3:message.gold=reader.int32();break;default:reader.skipType(tag&7);break}}return message};GAME_SINGLE_RESULT_REQ.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_SINGLE_RESULT_REQ.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.score!=null&&message.hasOwnProperty("score"))if(!$util.isInteger(message.score))return"score: integer expected";if(message.gold!=null&&message.hasOwnProperty("gold"))if(!$util.isInteger(message.gold))return"gold: integer expected";return null};GAME_SINGLE_RESULT_REQ.fromObject=function fromObject(object){if(object instanceof $root.proto.GAME_SINGLE_RESULT_REQ)return object;var message=new $root.proto.GAME_SINGLE_RESULT_REQ;if(object.score!=null)message.score=object.score|0;if(object.gold!=null)message.gold=object.gold|0;return message};GAME_SINGLE_RESULT_REQ.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.defaults){object.score=0;object.gold=0}if(message.score!=null&&message.hasOwnProperty("score"))object.score=message.score;if(message.gold!=null&&message.hasOwnProperty("gold"))object.gold=message.gold;return object};GAME_SINGLE_RESULT_REQ.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return GAME_SINGLE_RESULT_REQ}();proto.GAME_SINGLE_RESULT_RSP=function(){function GAME_SINGLE_RESULT_RSP(properties){this.resList=[];if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:if(!(message.resList&&message.resList.length))message.resList=[];message.resList.push($root.proto.Res.decode(reader,reader.uint32()));break;case 2:message.role=$root.proto.Role.decode(reader,reader.uint32());break;default:reader.skipType(tag&7);break}}return message};GAME_SINGLE_RESULT_RSP.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_SINGLE_RESULT_RSP.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.resList!=null&&message.hasOwnProperty("resList")){if(!Array.isArray(message.resList))return"resList: array expected";for(var i=0;i>>3){case 1:message.coin=reader.int32();break;default:reader.skipType(tag&7);break}}return message};GAME_CLIENT_SUB_COIN_REQ.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_CLIENT_SUB_COIN_REQ.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.coin!=null&&message.hasOwnProperty("coin"))if(!$util.isInteger(message.coin))return"coin: integer expected";return null};GAME_CLIENT_SUB_COIN_REQ.fromObject=function fromObject(object){if(object instanceof $root.proto.GAME_CLIENT_SUB_COIN_REQ)return object;var message=new $root.proto.GAME_CLIENT_SUB_COIN_REQ;if(object.coin!=null)message.coin=object.coin|0;return message};GAME_CLIENT_SUB_COIN_REQ.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.defaults)object.coin=0;if(message.coin!=null&&message.hasOwnProperty("coin"))object.coin=message.coin;return object};GAME_CLIENT_SUB_COIN_REQ.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return GAME_CLIENT_SUB_COIN_REQ}();proto.GAME_CLIENT_SUB_COIN_RSP=function(){function GAME_CLIENT_SUB_COIN_RSP(properties){if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:message.role=$root.proto.Role.decode(reader,reader.uint32());break;default:reader.skipType(tag&7);break}}return message};GAME_CLIENT_SUB_COIN_RSP.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_CLIENT_SUB_COIN_RSP.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.role!=null&&message.hasOwnProperty("role")){var error=$root.proto.Role.verify(message.role);if(error)return"role."+error}return null};GAME_CLIENT_SUB_COIN_RSP.fromObject=function fromObject(object){if(object instanceof $root.proto.GAME_CLIENT_SUB_COIN_RSP)return object;var message=new $root.proto.GAME_CLIENT_SUB_COIN_RSP;if(object.role!=null){if(typeof object.role!=="object")throw TypeError(".proto.GAME_CLIENT_SUB_COIN_RSP.role: object expected");message.role=$root.proto.Role.fromObject(object.role)}return message};GAME_CLIENT_SUB_COIN_RSP.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.defaults)object.role=null;if(message.role!=null&&message.hasOwnProperty("role"))object.role=$root.proto.Role.toObject(message.role,options);return object};GAME_CLIENT_SUB_COIN_RSP.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return GAME_CLIENT_SUB_COIN_RSP}();proto.GAME_QUERY_THEMES_REQ=function(){function GAME_QUERY_THEMES_REQ(properties){if(properties)for(var keys=Object.keys(properties),i=0;i>>3){default:reader.skipType(tag&7);break}}return message};GAME_QUERY_THEMES_REQ.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_QUERY_THEMES_REQ.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";return null};GAME_QUERY_THEMES_REQ.fromObject=function fromObject(object){if(object instanceof $root.proto.GAME_QUERY_THEMES_REQ)return object;return new $root.proto.GAME_QUERY_THEMES_REQ};GAME_QUERY_THEMES_REQ.toObject=function toObject(){return{}};GAME_QUERY_THEMES_REQ.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return GAME_QUERY_THEMES_REQ}();proto.GAME_QUERY_THEMES_RSP=function(){function GAME_QUERY_THEMES_RSP(properties){this.list=[];this.invitedList=[];if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:if(!(message.list&&message.list.length))message.list=[];if((tag&7)===2){var end2=reader.uint32()+reader.pos;while(reader.pos>>0}if(object.invitedList){if(!Array.isArray(object.invitedList))throw TypeError(".proto.GAME_QUERY_THEMES_RSP.invitedList: array expected");message.invitedList=[];for(var i=0;i>>3){case 1:message.petId=reader.uint32();break;default:reader.skipType(tag&7);break}}return message};GAME_UPGRADE_PET_REQ.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_UPGRADE_PET_REQ.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.petId!=null&&message.hasOwnProperty("petId"))if(!$util.isInteger(message.petId))return"petId: integer expected";return null};GAME_UPGRADE_PET_REQ.fromObject=function fromObject(object){if(object instanceof $root.proto.GAME_UPGRADE_PET_REQ)return object;var message=new $root.proto.GAME_UPGRADE_PET_REQ;if(object.petId!=null)message.petId=object.petId>>>0;return message};GAME_UPGRADE_PET_REQ.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.defaults)object.petId=0;if(message.petId!=null&&message.hasOwnProperty("petId"))object.petId=message.petId;return object};GAME_UPGRADE_PET_REQ.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return GAME_UPGRADE_PET_REQ}();proto.GAME_UPGRADE_PET_RSP=function(){function GAME_UPGRADE_PET_RSP(properties){if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:message.pet=$root.proto.Pet.decode(reader,reader.uint32());break;case 2:message.role=$root.proto.Role.decode(reader,reader.uint32());break;default:reader.skipType(tag&7);break}}return message};GAME_UPGRADE_PET_RSP.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};GAME_UPGRADE_PET_RSP.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.pet!=null&&message.hasOwnProperty("pet")){var error=$root.proto.Pet.verify(message.pet);if(error)return"pet."+error}if(message.role!=null&&message.hasOwnProperty("role")){var error=$root.proto.Role.verify(message.role);if(error)return"role."+error}return null};GAME_UPGRADE_PET_RSP.fromObject=function fromObject(object){if(object instanceof $root.proto.GAME_UPGRADE_PET_RSP)return object;var message=new $root.proto.GAME_UPGRADE_PET_RSP;if(object.pet!=null){if(typeof object.pet!=="object")throw TypeError(".proto.GAME_UPGRADE_PET_RSP.pet: object expected");message.pet=$root.proto.Pet.fromObject(object.pet)}if(object.role!=null){if(typeof object.role!=="object")throw TypeError(".proto.GAME_UPGRADE_PET_RSP.role: object expected");message.role=$root.proto.Role.fromObject(object.role)}return message};GAME_UPGRADE_PET_RSP.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.defaults){object.pet=null;object.role=null}if(message.pet!=null&&message.hasOwnProperty("pet"))object.pet=$root.proto.Pet.toObject(message.pet,options);if(message.role!=null&&message.hasOwnProperty("role"))object.role=$root.proto.Role.toObject(message.role,options);return object};GAME_UPGRADE_PET_RSP.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return GAME_UPGRADE_PET_RSP}();proto.Role=function(){function Role(properties){this.pieceList=[];if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:message.id=reader.uint32();break;case 2:message.name=reader.string();break;case 3:message.kind=reader.uint32();break;case 4:message.headurl=reader.string();break;case 5:message.headFrame=reader.uint32();break;case 21:message.exp=reader.int32();break;case 22:message.lev=reader.int32();break;case 34:if(!(message.pieceList&&message.pieceList.length))message.pieceList=[];message.pieceList.push($root.proto.Piece.decode(reader,reader.uint32()));break;case 40:message.gold=reader.int32();break;case 41:message.coin=reader.int32();break;case 51:message.stars=reader.int32();break;case 61:message.usingPet=$root.proto.Pet.decode(reader,reader.uint32());break;case 63:message.maxScore=reader.int32();break;case 65:message.equipScoreSum=reader.int32();break;case 66:message.cdForShare=reader.int64();break;default:reader.skipType(tag&7);break}}return message};Role.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};Role.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.id!=null&&message.hasOwnProperty("id"))if(!$util.isInteger(message.id))return"id: integer expected";if(message.name!=null&&message.hasOwnProperty("name"))if(!$util.isString(message.name))return"name: string expected";if(message.kind!=null&&message.hasOwnProperty("kind"))if(!$util.isInteger(message.kind))return"kind: integer expected";if(message.headurl!=null&&message.hasOwnProperty("headurl"))if(!$util.isString(message.headurl))return"headurl: string expected";if(message.headFrame!=null&&message.hasOwnProperty("headFrame"))if(!$util.isInteger(message.headFrame))return"headFrame: integer expected";if(message.exp!=null&&message.hasOwnProperty("exp"))if(!$util.isInteger(message.exp))return"exp: integer expected";if(message.lev!=null&&message.hasOwnProperty("lev"))if(!$util.isInteger(message.lev))return"lev: integer expected";if(message.pieceList!=null&&message.hasOwnProperty("pieceList")){if(!Array.isArray(message.pieceList))return"pieceList: array expected";for(var i=0;i>>0;if(object.name!=null)message.name=String(object.name);if(object.kind!=null)message.kind=object.kind>>>0;if(object.headurl!=null)message.headurl=String(object.headurl);if(object.headFrame!=null)message.headFrame=object.headFrame>>>0;if(object.exp!=null)message.exp=object.exp|0;if(object.lev!=null)message.lev=object.lev|0;if(object.pieceList){if(!Array.isArray(object.pieceList))throw TypeError(".proto.Role.pieceList: array expected");message.pieceList=[];for(var i=0;i>>0,object.cdForShare.high>>>0)).toNumber();return message};Role.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.arrays||options.defaults)object.pieceList=[];if(options.defaults){object.id=0;object.name="";object.kind=0;object.headurl="";object.headFrame=0;object.exp=0;object.lev=0;object.gold=0;object.coin=0;object.stars=0;object.usingPet=null;object.maxScore=0;object.equipScoreSum=0;if($util.Long){var long=new $util.Long(0,0,false);object.cdForShare=options.longs===String?long.toString():options.longs===Number?long.toNumber():long}else object.cdForShare=options.longs===String?"0":0}if(message.id!=null&&message.hasOwnProperty("id"))object.id=message.id;if(message.name!=null&&message.hasOwnProperty("name"))object.name=message.name;if(message.kind!=null&&message.hasOwnProperty("kind"))object.kind=message.kind;if(message.headurl!=null&&message.hasOwnProperty("headurl"))object.headurl=message.headurl;if(message.headFrame!=null&&message.hasOwnProperty("headFrame"))object.headFrame=message.headFrame;if(message.exp!=null&&message.hasOwnProperty("exp"))object.exp=message.exp;if(message.lev!=null&&message.hasOwnProperty("lev"))object.lev=message.lev;if(message.pieceList&&message.pieceList.length){object.pieceList=[];for(var j=0;j>>0,message.cdForShare.high>>>0)).toNumber():message.cdForShare;return object};Role.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return Role}();proto.RankRole=function(){function RankRole(properties){if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 2:message.name=reader.string();break;case 3:message.kind=reader.uint32();break;case 4:message.headurl=reader.string();break;case 5:message.headFrame=reader.uint32();break;case 22:message.lev=reader.int32();break;case 51:message.stars=reader.int32();break;default:reader.skipType(tag&7);break}}return message};RankRole.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};RankRole.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.name!=null&&message.hasOwnProperty("name"))if(!$util.isString(message.name))return"name: string expected";if(message.kind!=null&&message.hasOwnProperty("kind"))if(!$util.isInteger(message.kind))return"kind: integer expected";if(message.headurl!=null&&message.hasOwnProperty("headurl"))if(!$util.isString(message.headurl))return"headurl: string expected";if(message.headFrame!=null&&message.hasOwnProperty("headFrame"))if(!$util.isInteger(message.headFrame))return"headFrame: integer expected";if(message.lev!=null&&message.hasOwnProperty("lev"))if(!$util.isInteger(message.lev))return"lev: integer expected";if(message.stars!=null&&message.hasOwnProperty("stars"))if(!$util.isInteger(message.stars))return"stars: integer expected";return null};RankRole.fromObject=function fromObject(object){if(object instanceof $root.proto.RankRole)return object;var message=new $root.proto.RankRole;if(object.name!=null)message.name=String(object.name);if(object.kind!=null)message.kind=object.kind>>>0;if(object.headurl!=null)message.headurl=String(object.headurl);if(object.headFrame!=null)message.headFrame=object.headFrame>>>0;if(object.lev!=null)message.lev=object.lev|0;if(object.stars!=null)message.stars=object.stars|0;return message};RankRole.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.defaults){object.name="";object.kind=0;object.headurl="";object.headFrame=0;object.lev=0;object.stars=0}if(message.name!=null&&message.hasOwnProperty("name"))object.name=message.name;if(message.kind!=null&&message.hasOwnProperty("kind"))object.kind=message.kind;if(message.headurl!=null&&message.hasOwnProperty("headurl"))object.headurl=message.headurl;if(message.headFrame!=null&&message.hasOwnProperty("headFrame"))object.headFrame=message.headFrame;if(message.lev!=null&&message.hasOwnProperty("lev"))object.lev=message.lev;if(message.stars!=null&&message.hasOwnProperty("stars"))object.stars=message.stars;return object};RankRole.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return RankRole}();proto.ChartEntry=function(){function ChartEntry(properties){if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:message.rank=reader.int32();break;case 2:message.weight=reader.int64();break;case 3:message.id=reader.uint32();break;case 4:message.info=$root.proto.RankRole.decode(reader,reader.uint32());break;default:reader.skipType(tag&7);break}}return message};ChartEntry.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};ChartEntry.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.rank!=null&&message.hasOwnProperty("rank"))if(!$util.isInteger(message.rank))return"rank: integer expected";if(message.weight!=null&&message.hasOwnProperty("weight"))if(!$util.isInteger(message.weight)&&!(message.weight&&$util.isInteger(message.weight.low)&&$util.isInteger(message.weight.high)))return"weight: integer|Long expected";if(message.id!=null&&message.hasOwnProperty("id"))if(!$util.isInteger(message.id))return"id: integer expected";if(message.info!=null&&message.hasOwnProperty("info")){var error=$root.proto.RankRole.verify(message.info);if(error)return"info."+error}return null};ChartEntry.fromObject=function fromObject(object){if(object instanceof $root.proto.ChartEntry)return object;var message=new $root.proto.ChartEntry;if(object.rank!=null)message.rank=object.rank|0;if(object.weight!=null)if($util.Long)(message.weight=$util.Long.fromValue(object.weight)).unsigned=false;else if(typeof object.weight==="string")message.weight=parseInt(object.weight,10);else if(typeof object.weight==="number")message.weight=object.weight;else if(typeof object.weight==="object")message.weight=(new $util.LongBits(object.weight.low>>>0,object.weight.high>>>0)).toNumber();if(object.id!=null)message.id=object.id>>>0;if(object.info!=null){if(typeof object.info!=="object")throw TypeError(".proto.ChartEntry.info: object expected");message.info=$root.proto.RankRole.fromObject(object.info)}return message};ChartEntry.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.defaults){object.rank=0;if($util.Long){var long=new $util.Long(0,0,false);object.weight=options.longs===String?long.toString():options.longs===Number?long.toNumber():long}else object.weight=options.longs===String?"0":0;object.id=0;object.info=null}if(message.rank!=null&&message.hasOwnProperty("rank"))object.rank=message.rank;if(message.weight!=null&&message.hasOwnProperty("weight"))if(typeof message.weight==="number")object.weight=options.longs===String?String(message.weight):message.weight;else object.weight=options.longs===String?$util.Long.prototype.toString.call(message.weight):options.longs===Number?(new $util.LongBits(message.weight.low>>>0,message.weight.high>>>0)).toNumber():message.weight;if(message.id!=null&&message.hasOwnProperty("id"))object.id=message.id;if(message.info!=null&&message.hasOwnProperty("info"))object.info=$root.proto.RankRole.toObject(message.info,options);return object};ChartEntry.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return ChartEntry}();proto.MATCH_TYPE=function(){var valuesById={},values=Object.create(valuesById);values[valuesById[0]="MATCH_TYPE_INVALID"]=0;values[valuesById[1]="MATCH_TYPE_GLOBAL"]=1;values[valuesById[2]="MATCH_TYPE_GRADE"]=2;values[valuesById[3]="MATCH_TYPE_INVITED"]=3;return values}();proto.CHART_TYPE=function(){var valuesById={},values=Object.create(valuesById);values[valuesById[0]="CHART_TYPE_INVALID"]=0;values[valuesById[2]="CHART_TYPE_SINGLE_SCORE"]=2;return values}();proto.Res=function(){function Res(properties){if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:message.id=reader.uint32();break;case 2:message.amt=reader.int32();break;default:reader.skipType(tag&7);break}}return message};Res.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};Res.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.id!=null&&message.hasOwnProperty("id"))if(!$util.isInteger(message.id))return"id: integer expected";if(message.amt!=null&&message.hasOwnProperty("amt"))if(!$util.isInteger(message.amt))return"amt: integer expected";return null};Res.fromObject=function fromObject(object){if(object instanceof $root.proto.Res)return object;var message=new $root.proto.Res;if(object.id!=null)message.id=object.id>>>0;if(object.amt!=null)message.amt=object.amt|0;return message};Res.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.defaults){object.id=0;object.amt=0}if(message.id!=null&&message.hasOwnProperty("id"))object.id=message.id;if(message.amt!=null&&message.hasOwnProperty("amt"))object.amt=message.amt;return object};Res.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return Res}();proto.RES_TYPE=function(){var valuesById={},values=Object.create(valuesById);values[valuesById[0]="RES_TYPE_INVALID"]=0;values[valuesById[1]="RES_TYPE_COIN"]=1;values[valuesById[4]="RES_TYPE_GOLD"]=4;values[valuesById[100]="RES_TYPE_PET"]=100;values[valuesById[200]="RES_TYPE_EQUIP"]=200;return values}();proto.Pet=function(){function Pet(properties){if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:message.id=reader.uint32();break;case 2:message.lev=reader.int32();break;case 11:message.equip=$root.proto.Equip.decode(reader,reader.uint32());break;default:reader.skipType(tag&7);break}}return message};Pet.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};Pet.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.id!=null&&message.hasOwnProperty("id"))if(!$util.isInteger(message.id))return"id: integer expected";if(message.lev!=null&&message.hasOwnProperty("lev"))if(!$util.isInteger(message.lev))return"lev: integer expected";if(message.equip!=null&&message.hasOwnProperty("equip")){var error=$root.proto.Equip.verify(message.equip);if(error)return"equip."+error}return null};Pet.fromObject=function fromObject(object){if(object instanceof $root.proto.Pet)return object;var message=new $root.proto.Pet;if(object.id!=null)message.id=object.id>>>0;if(object.lev!=null)message.lev=object.lev|0;if(object.equip!=null){if(typeof object.equip!=="object")throw TypeError(".proto.Pet.equip: object expected");message.equip=$root.proto.Equip.fromObject(object.equip)}return message};Pet.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.defaults){object.id=0;object.lev=0;object.equip=null}if(message.id!=null&&message.hasOwnProperty("id"))object.id=message.id;if(message.lev!=null&&message.hasOwnProperty("lev"))object.lev=message.lev;if(message.equip!=null&&message.hasOwnProperty("equip"))object.equip=$root.proto.Equip.toObject(message.equip,options);return object};Pet.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return Pet}();proto.ThemeInvited=function(){function ThemeInvited(properties){this.headurlList=[];if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:message.id=reader.uint32();break;case 2:if(!(message.headurlList&&message.headurlList.length))message.headurlList=[];message.headurlList.push(reader.string());break;default:reader.skipType(tag&7);break}}return message};ThemeInvited.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};ThemeInvited.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.id!=null&&message.hasOwnProperty("id"))if(!$util.isInteger(message.id))return"id: integer expected";if(message.headurlList!=null&&message.hasOwnProperty("headurlList")){if(!Array.isArray(message.headurlList))return"headurlList: array expected";for(var i=0;i>>0;if(object.headurlList){if(!Array.isArray(object.headurlList))throw TypeError(".proto.ThemeInvited.headurlList: array expected");message.headurlList=[];for(var i=0;i>>3){case 1:message.id=reader.uint32();break;default:reader.skipType(tag&7);break}}return message};Equip.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};Equip.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.id!=null&&message.hasOwnProperty("id"))if(!$util.isInteger(message.id))return"id: integer expected";return null};Equip.fromObject=function fromObject(object){if(object instanceof $root.proto.Equip)return object;var message=new $root.proto.Equip;if(object.id!=null)message.id=object.id>>>0;return message};Equip.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.defaults)object.id=0;if(message.id!=null&&message.hasOwnProperty("id"))object.id=message.id;return object};Equip.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return Equip}();proto.SHOP_TYPE=function(){var valuesById={},values=Object.create(valuesById);values[valuesById[0]="SHOP_TYPE_INVALID"]=0;values[valuesById[1]="SHOP_TYPE_PET"]=1;values[valuesById[2]="SHOP_TYPE_EQUIP"]=2;values[valuesById[3]="SHOP_TYPE_HEAD_FRAME"]=3;return values}();proto.AWARD_TYPE=function(){var valuesById={},values=Object.create(valuesById);values[valuesById[0]="AWARD_TYPE_INVALID"]=0;values[valuesById[1]="AWARD_TYPE_PLAY_GLOBAL_WINNER"]=1;values[valuesById[2]="AWARD_TYPE_PLAY_GLOBAL_LOSER"]=2;values[valuesById[3]="AWARD_TYPE_PLAY_GRADE_WINNER"]=3;values[valuesById[4]="AWARD_TYPE_PLAY_GRADE_LOSER"]=4;values[valuesById[5]="AWARD_TYPE_ADD_ONTO_DESKTOP"]=5;values[valuesById[6]="AWARD_TYPE_SHARE_1"]=6;values[valuesById[7]="AWARD_TYPE_SHARE_2"]=7;values[valuesById[8]="AWARD_TYPE_INVITE_1"]=8;values[valuesById[9]="AWARD_TYPE_INVITE_2"]=9;values[valuesById[10]="AWARD_TYPE_GIFT_BOX"]=10;return values}();proto.Cookie=function(){function Cookie(properties){this.guideList=[];if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 2:if(!(message.guideList&&message.guideList.length))message.guideList=[];if((tag&7)===2){var end2=reader.uint32()+reader.pos;while(reader.pos>>0}if(object.guideID!=null)message.guideID=String(object.guideID);return message};Cookie.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.arrays||options.defaults)object.guideList=[];if(options.defaults)object.guideID="";if(message.guideList&&message.guideList.length){object.guideList=[];for(var j=0;j>>3){case 1:message.id=reader.uint32();break;case 2:message.cnt=reader.int32();break;default:reader.skipType(tag&7);break}}return message};Charge.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};Charge.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.id!=null&&message.hasOwnProperty("id"))if(!$util.isInteger(message.id))return"id: integer expected";if(message.cnt!=null&&message.hasOwnProperty("cnt"))if(!$util.isInteger(message.cnt))return"cnt: integer expected";return null};Charge.fromObject=function fromObject(object){if(object instanceof $root.proto.Charge)return object;var message=new $root.proto.Charge;if(object.id!=null)message.id=object.id>>>0;if(object.cnt!=null)message.cnt=object.cnt|0;return message};Charge.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.defaults){object.id=0;object.cnt=0}if(message.id!=null&&message.hasOwnProperty("id"))object.id=message.id;if(message.cnt!=null&&message.hasOwnProperty("cnt"))object.cnt=message.cnt;return object};Charge.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return Charge}();proto.Piece=function(){function Piece(properties){if(properties)for(var keys=Object.keys(properties),i=0;i>>3){case 1:message.id=reader.uint32();break;case 2:message.amt=reader.int32();break;default:reader.skipType(tag&7);break}}return message};Piece.decodeDelimited=function decodeDelimited(reader){if(!(reader instanceof $Reader))reader=new $Reader(reader);return this.decode(reader,reader.uint32())};Piece.verify=function verify(message){if(typeof message!=="object"||message===null)return"object expected";if(message.id!=null&&message.hasOwnProperty("id"))if(!$util.isInteger(message.id))return"id: integer expected";if(message.amt!=null&&message.hasOwnProperty("amt"))if(!$util.isInteger(message.amt))return"amt: integer expected";return null};Piece.fromObject=function fromObject(object){if(object instanceof $root.proto.Piece)return object;var message=new $root.proto.Piece;if(object.id!=null)message.id=object.id>>>0;if(object.amt!=null)message.amt=object.amt|0;return message};Piece.toObject=function toObject(message,options){if(!options)options={};var object={};if(options.defaults){object.id=0;object.amt=0}if(message.id!=null&&message.hasOwnProperty("id"))object.id=message.id;if(message.amt!=null&&message.hasOwnProperty("amt"))object.amt=message.amt;return object};Piece.prototype.toJSON=function toJSON(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)};return Piece}();return proto}();return $root})(protobuf);