{
    "package": "vip.metadev.module.battle.protobuf",
    "syntax": "proto2",
    "options": {
        "java_outer_classname": "IndexDataRequestProto",
        "java_multiple_files": false
    },
    "messages": [
        {
            "name": "CommonRequest",
            "syntax": "proto2",
            "fields": [
                {
                    "rule": "required",
                    "type": "string",
                    "name": "session_id",
                    "id": 1
                },
                {
                    "rule": "optional",
                    "type": "string",
                    "name": "token",
                    "id": 2
                },
                {
                    "rule": "optional",
                    "type": "string",
                    "name": "client_version",
                    "id": 3
                },
                {
                    "rule": "optional",
                    "type": "string",
                    "name": "device_info",
                    "id": 4
                },
                {
                    "rule": "optional",
                    "type": "string",
                    "name": "data",
                    "id": 5
                }
            ]
        },
        {
            "name": "CommonResponse",
            "syntax": "proto2",
            "fields": [
                {
                    "rule": "optional",
                    "type": "WsMessageType",
                    "name": "message_type",
                    "id": 1
                },
                {
                    "rule": "optional",
                    "type": "string",
                    "name": "message_id",
                    "id": 2
                },
                {
                    "rule": "optional",
                    "type": "string",
                    "name": "session_id",
                    "id": 3
                },
                {
                    "rule": "optional",
                    "type": "string",
                    "name": "code",
                    "id": 4
                },
                {
                    "rule": "optional",
                    "type": "string",
                    "name": "msg",
                    "id": 5
                },
                {
                    "rule": "optional",
                    "type": "string",
                    "name": "data",
                    "id": 6
                }
            ]
        },
        {
            "name": "BattleProgressRequest",
            "syntax": "proto2",
            "fields": [
                {
                    "rule": "optional",
                    "type": "WsMessageType",
                    "name": "message_id",
                    "id": 1,
                    "options": {
                        "default": "BATTLE_PROGRESS_UPDATE"
                    }
                },
                {
                    "rule": "repeated",
                    "type": "MonsterVo",
                    "name": "monsters",
                    "id": 2
                },
                {
                    "rule": "optional",
                    "type": "bool",
                    "name": "battle_over",
                    "id": 3,
                    "options": {
                        "default": false
                    }
                },
                {
                    "rule": "optional",
                    "type": "int32",
                    "name": "map_id",
                    "id": 7,
                    "options": {
                        "default": 1001
                    }
                },
                {
                    "rule": "repeated",
                    "type": "CommonRequest",
                    "name": "envelope",
                    "id": 8
                }
            ]
        },
        {
            "name": "MonsterVo",
            "syntax": "proto2",
            "fields": [
                {
                    "rule": "optional",
                    "type": "int32",
                    "name": "monsterId",
                    "id": 1
                },
                {
                    "rule": "optional",
                    "type": "int32",
                    "name": "type",
                    "id": 2
                },
                {
                    "rule": "optional",
                    "type": "bool",
                    "name": "isKill",
                    "id": 3,
                    "options": {
                        "default": false
                    }
                },
                {
                    "rule": "optional",
                    "type": "bool",
                    "name": "is_fish_scheme",
                    "id": 4,
                    "options": {
                        "default": false
                    }
                },
                {
                    "rule": "optional",
                    "type": "int32",
                    "name": "fish_group_id",
                    "id": 5,
                    "options": {
                        "default": 1
                    }
                },
                {
                    "rule": "optional",
                    "type": "bool",
                    "name": "is_violent",
                    "id": 6,
                    "options": {
                        "default": false
                    }
                }
            ]
        },
        {
            "name": "BattleResponse",
            "syntax": "proto2",
            "fields": [
                {
                    "rule": "optional",
                    "type": "int32",
                    "name": "new_balance",
                    "id": 1,
                    "options": {
                        "default": 0
                    }
                }
            ]
        },
        {
            "name": "ChooseMagicRequest",
            "syntax": "proto2",
            "fields": [
                {
                    "rule": "optional",
                    "type": "WsMessageType",
                    "name": "message_id",
                    "id": 1,
                    "options": {
                        "default": "CHOOSE_MAGIC_ARRAY"
                    }
                },
                {
                    "rule": "required",
                    "type": "int64",
                    "name": "magic_array_id",
                    "id": 2
                },
                {
                    "rule": "repeated",
                    "type": "CommonRequest",
                    "name": "envelope",
                    "id": 3
                }
            ]
        },
        {
            "name": "EnterGameRequest",
            "syntax": "proto2",
            "fields": [
                {
                    "rule": "optional",
                    "type": "WsMessageType",
                    "name": "message_id",
                    "id": 1,
                    "options": {
                        "default": "ENTER_GAME"
                    }
                },
                {
                    "rule": "required",
                    "type": "string",
                    "name": "game_mode",
                    "id": 2
                },
                {
                    "rule": "repeated",
                    "type": "CommonRequest",
                    "name": "envelope",
                    "id": 3
                }
            ]
        },
        {
            "name": "MailListRequestMessage",
            "syntax": "proto2",
            "fields": [
                {
                    "rule": "optional",
                    "type": "WsMessageType",
                    "name": "message_id",
                    "id": 1,
                    "options": {
                        "default": "MAIL_LIST_REQUEST"
                    }
                },
                {
                    "rule": "required",
                    "type": "int32",
                    "name": "status",
                    "id": 2
                },
                {
                    "rule": "required",
                    "type": "int32",
                    "name": "pageNum",
                    "id": 3
                },
                {
                    "rule": "required",
                    "type": "int32",
                    "name": "pageSize",
                    "id": 4
                },
                {
                    "rule": "repeated",
                    "type": "CommonRequest",
                    "name": "envelope",
                    "id": 10
                }
            ]
        },
        {
            "name": "MailDetailRequestMessage",
            "syntax": "proto2",
            "fields": [
                {
                    "rule": "optional",
                    "type": "WsMessageType",
                    "name": "message_id",
                    "id": 1,
                    "options": {
                        "default": "MAIL_DETAIL_REQUEST"
                    }
                },
                {
                    "rule": "required",
                    "type": "int32",
                    "name": "mailId",
                    "id": 2
                },
                {
                    "rule": "repeated",
                    "type": "CommonRequest",
                    "name": "envelope",
                    "id": 10
                }
            ]
        },
        {
            "name": "MailClaimRequestMessage",
            "syntax": "proto2",
            "fields": [
                {
                    "rule": "optional",
                    "type": "WsMessageType",
                    "name": "message_id",
                    "id": 1,
                    "options": {
                        "default": "MAIL_CLAIM_REQUEST"
                    }
                },
                {
                    "rule": "required",
                    "type": "int64",
                    "name": "mailIds",
                    "id": 2
                },
                {
                    "rule": "repeated",
                    "type": "CommonRequest",
                    "name": "envelope",
                    "id": 10
                }
            ]
        },
        {
            "name": "MailReadRequestMessage",
            "syntax": "proto2",
            "fields": [
                {
                    "rule": "optional",
                    "type": "WsMessageType",
                    "name": "message_id",
                    "id": 1,
                    "options": {
                        "default": "MAIL_READ_REQUEST"
                    }
                },
                {
                    "rule": "required",
                    "type": "int64",
                    "name": "mailIds",
                    "id": 2
                },
                {
                    "rule": "repeated",
                    "type": "CommonRequest",
                    "name": "envelope",
                    "id": 10
                }
            ]
        },
        {
            "name": "MailDeleteRequestMessage",
            "syntax": "proto2",
            "fields": [
                {
                    "rule": "optional",
                    "type": "WsMessageType",
                    "name": "message_id",
                    "id": 1,
                    "options": {
                        "default": "MAIL_DELETE_REQUEST"
                    }
                },
                {
                    "rule": "required",
                    "type": "int64",
                    "name": "mailIds",
                    "id": 2
                },
                {
                    "rule": "repeated",
                    "type": "CommonRequest",
                    "name": "envelope",
                    "id": 10
                }
            ]
        },
        {
            "name": "UpgradeMagicRequest",
            "syntax": "proto2",
            "fields": [
                {
                    "rule": "optional",
                    "type": "WsMessageType",
                    "name": "message_id",
                    "id": 1,
                    "options": {
                        "default": "UPGRADE_MAGIC_ARRAY"
                    }
                },
                {
                    "rule": "required",
                    "type": "int64",
                    "name": "magic_array_id",
                    "id": 2
                },
                {
                    "rule": "repeated",
                    "type": "CommonRequest",
                    "name": "envelope",
                    "id": 3
                }
            ]
        },
        {
            "name": "IndexDataRequest",
            "syntax": "proto2",
            "fields": [
                {
                    "rule": "optional",
                    "type": "WsMessageType",
                    "name": "message_id",
                    "id": 1,
                    "options": {
                        "default": "INDEX_DATA"
                    }
                },
                {
                    "rule": "repeated",
                    "type": "CommonRequest",
                    "name": "envelope",
                    "id": 2
                }
            ]
        },
        {
            "name": "IndexPageDataResponse",
            "syntax": "proto2",
            "fields": [
                {
                    "rule": "repeated",
                    "type": "UnclaimedMagicStoneEntry",
                    "name": "unclaimed_magic_stone_map",
                    "id": 1
                },
                {
                    "rule": "optional",
                    "type": "StoryEntry",
                    "name": "storyEntry",
                    "id": 2
                },
                {
                    "rule": "optional",
                    "type": "int32",
                    "name": "maxMagicArrayLevel",
                    "id": 3
                }
            ]
        },
        {
            "name": "UnclaimedMagicStoneEntry",
            "syntax": "proto2",
            "fields": [
                {
                    "rule": "optional",
                    "type": "string",
                    "name": "key",
                    "id": 1
                },
                {
                    "rule": "optional",
                    "type": "int64",
                    "name": "value",
                    "id": 2
                }
            ]
        },
        {
            "name": "StoryEntry",
            "syntax": "proto2",
            "fields": [
                {
                    "rule": "optional",
                    "type": "string",
                    "name": "story_id",
                    "id": 1
                },
                {
                    "rule": "optional",
                    "type": "bool",
                    "name": "success",
                    "id": 2,
                    "options": {
                        "default": false
                    }
                },
                {
                    "rule": "optional",
                    "type": "int32",
                    "name": "story_ticket",
                    "id": 3
                }
            ]
        }
    ],
    "enums": [
        {
            "name": "WsMessageType",
            "syntax": "proto2",
            "values": [
                {
                    "name": "UNKNOWN",
                    "id": 0
                },
                {
                    "name": "CONNECTION_ACK",
                    "id": 1000
                },
                {
                    "name": "HEARTBEAT",
                    "id": 1001
                },
                {
                    "name": "AUTHENTICATION",
                    "id": 1002
                },
                {
                    "name": "AUTHENTICATION_RESPONSE",
                    "id": 1003
                },
                {
                    "name": "ERROR",
                    "id": 1004
                },
                {
                    "name": "ENTER_GAME",
                    "id": 2000
                },
                {
                    "name": "BATTLE_PROGRESS_UPDATE",
                    "id": 2001
                },
                {
                    "name": "CHOOSE_MAGIC_ARRAY",
                    "id": 2002
                },
                {
                    "name": "UPGRADE_MAGIC_ARRAY",
                    "id": 2003
                },
                {
                    "name": "INDEX_DATA",
                    "id": 2004
                },
                {
                    "name": "BOSS_KILL_NOTIFICATION",
                    "id": 2005
                },
                {
                    "name": "MONSTER_KILL_NOTIFICATION",
                    "id": 2006
                },
                {
                    "name": "MONSTER_KILL_CAROUSEL_NOTIFICATION",
                    "id": 2007
                },
                {
                    "name": "ENTRY_STORY_GAME",
                    "id": 2008
                },
                {
                    "name": "MAIL_NOTIFICATION",
                    "id": 3000
                },
                {
                    "name": "MAIL_LIST_REQUEST",
                    "id": 3001
                },
                {
                    "name": "MAIL_DETAIL_REQUEST",
                    "id": 3002
                },
                {
                    "name": "MAIL_CLAIM_REQUEST",
                    "id": 3003
                },
                {
                    "name": "MAIL_READ_REQUEST",
                    "id": 3004
                },
                {
                    "name": "MAIL_DELETE_REQUEST",
                    "id": 3005
                },
                {
                    "name": "MAIL_UNREAD_COUNT",
                    "id": 3006
                },
                {
                    "name": "MAIL_STATUS_UPDATE",
                    "id": 3007
                },
                {
                    "name": "DAILY_TASK_INDEX",
                    "id": 4000
                },
                {
                    "name": "CLAIM_AWARD",
                    "id": 4100
                }
            ]
        },
        {
            "name": "GameMode",
            "syntax": "proto2",
            "values": [
                {
                    "name": "STORY_MODE",
                    "id": 1
                },
                {
                    "name": "ENDLESS_NOVICE",
                    "id": 2
                },
                {
                    "name": "ENDLESS_INTERMEDIATE",
                    "id": 3
                },
                {
                    "name": "ENDLESS_ADVANCED",
                    "id": 4
                }
            ]
        }
    ],
    "isNamespace": true
}